/* ==========================================================================
   Base Theme Imports (Rainier)
   ========================================================================== */
@import url(/bcms/mt-static/support/theme_static/rainier/css/base.css);
@import url(/bcms/mt-static/support/theme_static/rainier/css/rainier-white/screen.css);

/* ==========================================================================
   Variables & Global Styles
   ========================================================================== */
:root {
  --seisho-navy: #00214d;    /* 清勝ネイビー */
  --seisho-orange: #f39800;  /* 清勝オレンジ */
  --seisho-bg: #f4f7f9;
}

body {
  background-color: var(--seisho-bg);
  color: var(--seisho-navy);
}

/* ヘッダー全体の装飾 */
#header {
  background-color: var(--seisho-navy) !important;
  color: #fff;
  padding: 20px 0;
}

#header a { color: #fff; text-decoration: none; }

/* ==========================================================================
   Logo & Navigation
   ========================================================================== */
.main-logo {
  width: 100%;
  max-width: 450px; /* PCでの最大幅 */
  height: auto;
  display: block;
  margin: 0 auto;   /* 中央寄せ */
  image-rendering: -webkit-optimize-contrast;
}

/* ==========================================================================
   Hub Layout (Card Design)
   ========================================================================== */
.hub-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.site-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border-top: 5px solid var(--seisho-orange);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none !important; /* 標準テーマの枠線を消す */
}

.site-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.screenshot-wrapper {
  aspect-ratio: 16 / 9;
  background: #eee;
  overflow: hidden;
}

.screenshot-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-link-btn {
  display: inline-block;
  background-color: var(--seisho-orange);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s;
}

.site-link-btn:hover { opacity: 0.8; }

/* ==========================================================================
   Responsive (Mobile)
   ========================================================================== */
@media (max-width: 600px) {
  .main-logo {
    max-width: 280px;
    padding: 10px 0;
  }

  .hub-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding: 10px;
  }
  
  .site-card {
    min-width: 85%;
    scroll-snap-align: center;
  }
}