@charset "utf-8";
/* site : トップページ (4 x 4 のタイル) */

/* タイルを本文の上下左右の中央に置く */
.content {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* タイル全体 : PC は 404px 四方、スマホは画面幅に合わせて縮める */
.site-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2px;
  width: min(404px, 100%);
  aspect-ratio: 1;
  border: 1px solid #ccc;
  background-color: #eee;
}

/* タイル共通スタイル */
.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  font-weight: bold;
  border: 1px solid #999;
  font-size: 14px;
  text-align: center;
  background-color: #fff;
  overflow: hidden;
}

.tile a {
  display: flex;
  align-items: center;     /* 縦の中央 */
  justify-content: center; /* 横の中央 */
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #000;
  font-size: 14px;
}

.tile a:hover {
  color: red;
}

/* 各タイルの位置と色 */
.logo2     { grid-column: 1 / 2; grid-row: 1 / 2; background: #f99; }
.logo2 img { width: 100%; height: 100%; object-fit: cover; }

.tennis   { grid-column: 2 / 5; grid-row: 1 / 2; background: lemonchiffon; }

.wiki     { grid-column: 1 / 2; grid-row: 2 / 4; background: lightpink; }
.comic    { grid-column: 2 / 3; grid-row: 2 / 3; background: lightcyan; }
.mpiano   { grid-column: 3 / 4; grid-row: 2 / 3; background: palegreen; }
.qwatch2  { grid-column: 4 / 5; grid-row: 2 / 5; background: lightcyan; }

.album    { grid-column: 2 / 3; grid-row: 3 / 4; background: lemonchiffon; }
.anime    { grid-column: 3 / 4; grid-row: 3 / 4; background: lightpink; }

.panorama { grid-column: 1 / 4; grid-row: 4 / 5; background: palegreen; }