﻿@charset "utf-8";
/* CSS Document */

/* --- 初期化（他のCSSの影響を防ぐ） --- */
.getsuun-table,
.getsuun-table * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* --- 全体のコンテナ --- */
.getsuun-table {
  position: relative;
  width: 270px;
  height: 270px;
  background-color: #ffffff;
  font-family: "Times New Roman", "Yu Mincho", YuMincho, serif; 
}

/* --- 枠外のカタカナ --- */
.getsuun-table .kana {
  position: absolute;
  color: #ff0000;
  font-size: 24px;
  font-family: sans-serif; 
}

.getsuun-table .kana-a {
  top: 10px;
  /* 左余白45px + 真ん中の列の中央(180pxの半分=90px) = 135px */
  left: 135px;
  transform: translateX(-50%);
}

.getsuun-table .kana-ha {
  top: 10px;
  /* 左余白45px + 右の列の中央(180pxの5/6=150px) = 195px */
  left: 195px;
  transform: translateX(-50%);
}

/* --- 正方形の枠とグリッド --- */
.getsuun-table .grid-box {
  position: absolute;
  /* 上下左右均等に45pxの余白を持たせる */
  top: 45px;
  left: 45px;
  width: 180px;
  height: 180px;
  border: 2px solid #000000;
  
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

/* --- 枠内の数字 --- */
.getsuun-table .num {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  color: #000000;
}
