html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 80px 10px 50px; /* ヘッダー固定分の余白を確保 */
  background-color: #fff;
  font-family: Helvetica, Arial, sans-serif;
}

/* ヘッダーのスタイル */
#header-text {
  position: fixed;
  top: 20px;         /* 必要に応じて調整 */
  left: 0;
  width: 100%;
  transform: none;
  z-index: 1000;
  background: white;
  text-align: center;
  font-family: "Shippori Mincho", Times, serif;
  font-size: 16px;
  padding: 10px 0;
  transition: opacity 0.5s ease;
}

/* ヘッダーを非表示状態にするクラス */
.hidden {
  opacity: 0;
}

/* 文字サイズ */
#header-text span.smaller {
  font-size: 13px;
}

/* ヘッダー内のリンクは親のスタイルを継承 */
#header-text a {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
}

/* iPhone タテ用 */
@media screen and (max-width: 600px) and (orientation: portrait) {
body {
    padding-top: 125px;  /* コンテンツの上の初期隙間 */
  }
  /* ヘッダーを左右いっぱいに広げ、上部隙間なしにする */
  #header-text {
    top: 18px;       /* ヘッダーの上部隙間 */
    left: 0;
    transform: none;
    width: 100%;
  }

  /* ヘッダー内の最初のリンク（sheep quiet）をブロック表示にする */
  #header-text a:first-child {
    display: block;
    margin-bottom: 10px;
  }
  
  /* ヘッダーの文字サイズ調整 */
  #header-text {
    font-size: 18px;
  }
  
  #header-text span.smaller {
    font-size: 14px;
  }
  
  /* grid-containerのウィジェットの調整（そのまま） */
  .grid-container {
    transform: scale(0.7) !important;
    transform-origin: top center !important;
    grid-template-columns: repeat(2, 1fr) !important;
    justify-content: center !important;
    column-gap: 25px !important;
    row-gap: 20px !important;
    margin-bottom: -600px; !important;
  }
  
  .grid-container a {
    font-size: 10px;
  }
}

/* 最後の単語は余白なし */
#header-text span:last-child {
  margin-right: 0;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, 225px);
  justify-content: center;
  column-gap: 20px;
  row-gap: 10px;
  width: 100%;
  max-width: 100%;
}

.grid-container a {
  display: block;
  width: 225px;
  height: 320px;
  text-decoration: none;
  color: silver;
  font-size: 10px;
  text-align: center;
}

.label {
  margin-top: 5px;
}
