/* ===============================
 *  Base typography
 * =============================== */

/* 見出しの共通カラー */
h1,
h2,
h3 {
  color: #5686BF;
}


/* ===============================
 *  Site header (帯＋サイト名)
 * =============================== */

.site-header {
  background: #5686BF;
  border-bottom: 1px solid #ddd;
}

.site-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #eee;
}

.site-title-link {
  color: #eee;
  text-decoration: none;
}

.site-title-link:hover {
  color: #fff;
  text-decoration: underline; /* または none のままでもOK */
}

/* ===============================
 *  Common utilities
 * =============================== */

/* 2:1 固定比率（Bootstrap4向け） */
.ratio-2x1 {
  position: relative;
  width: 100%;
  background: #f8f9fa;
}

.ratio-2x1::before {
  content: "";
  display: block;
  padding-top: 50%; /* 2:1比率 */
}

.ratio-2x1 > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 画像トリミング＋画像下の余白除去 */
.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  vertical-align: bottom;
}

/* 説明テキスト（通常サイズ） */
.desc-text {
  font-size: 1rem;       /* Bootstrap既定の本文サイズ */
  line-height: 1.6;
  color: #555;
}


/* ===============================
 *  Common card styles
 * =============================== */

/* インデックス用カード：角丸10px＋枠線 */
.card.rounded-lg {
  border-radius: 10px !important;
  overflow: hidden;
  border: 1px solid #ddd !important;
}

/* カードのホバー演出（軽く浮かせる） */
.card--lift {
  transition: transform .12s ease, box-shadow .12s ease;
}

.card--lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 .75rem 1.25rem rgba(0,0,0,.15) !important;
}


/* ===============================
 *  Google Photo / Theme 用
 * =============================== */

/* サムネイル正方形ボックス */
.thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f3f4f6;
  overflow: hidden;
}

.thumb-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 4枚サムネイル（2×2配置） */
.thumb-wrap.thumb-quad img {
  /* ベースの img ルールを上書きしないと動きが変になるので、
     2×2用は quad-item 内の img に任せる */
  position: static;
  width: 100%;
  height: 100%;
}

.thumb-wrap.thumb-quad .quad-item {
  position: absolute;
  width: 50%;
  height: 50%;
}

/* 1枚目：左上 */
.thumb-wrap.thumb-quad .quad-item:nth-child(1) {
  top: 0;
  left: 0;
}

/* 2枚目：右上 */
.thumb-wrap.thumb-quad .quad-item:nth-child(2) {
  top: 0;
  left: 50%;
}

/* 3枚目：左下 */
.thumb-wrap.thumb-quad .quad-item:nth-child(3) {
  top: 50%;
  left: 0;
}

/* 4枚目：右下 */
.thumb-wrap.thumb-quad .quad-item:nth-child(4) {
  top: 50%;
  left: 50%;
}

.thumb-wrap.thumb-quad .quad-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* サムネイルが無い場合のプレースホルダ */
.thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #9ca3af;
  font-size: 12px;
  background: #f9fafb;
}

/* Google Photo テーマ用カード全体 */
.photo-card {
  color: inherit;
  text-decoration: none;
  transition: box-shadow .15s ease;
  border-radius: 10px !important;
  border: 1px solid #ddd !important;
  overflow: hidden;
}

.photo-card:hover {
  text-decoration: none;
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,.08);
}

/* Google Photo カード内タイトル */
.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: .4rem;
}

/* Google Photo カード内テキスト */
.card-text {
  font-size: .9rem;
  color: #4b5563;
  margin-bottom: 0;
}

