/* 音声タブ用のcss file */

body {
	line-height: 1.75;
	font-size: 1em;
	font-family: "Segoe UI",SegoeUI,"Helvetica Neue",Helvetica,Arial,sans-serif;
	scroll-behavior: smooth;
	overflow-wrap: break-word;
	tab-size: 4;
	font-feature-settings: "palt" 1;
  height: auto; /* コンテンツ量に応じた高さに変更 */
  overflow: hidden; /* スクロールを隠す設定はそのまま */
}
/* アンカーリンクが機能する際の位置調整 */
:target {
  scroll-margin-top: 20px; /* ターゲット要素の上部に余白を追加して位置を調整 */
}
::-webkit-scrollbar {
  display: none; /* Webkitベースのブラウザ（ChromeやSafari）でスクロールバーを隠す */
}
@media (max-width: 640px) {
	body {
		font-size: 0.875em;
	}
}

body:where(
		[lang="en"],
		[lang="en-sg"],
		[lang="es-es"],
		[lang="es-mx"],
		[lang="de"],
		[lang="fr"],
		[lang="it"],
		[lang="en-gb"]
	) {
	font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial,sans-serif;
	letter-spacing: 0.02rem;
}
body:where([lang="zh-cn"]) {
	font-family: "Segoe UI", SegoeUI, "Microsoft YaHei", 微软雅黑,
		"Helvetica Neue", Helvetica, Arial, sans-serif;
}
body:where([lang="ko"]) {
	font-family: "Segoe UI", SegoeUI, "Malgun Gothic", Gulim, "Helvetica Neue",
		Helvetica, Arial, sans-serif;
}
body:where([lang="th"]) {
	font-family: "Leelawadee UI", "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica,
		Arial, sans-serif;
}
:root:where([lang="zh-tw"]) {
	font-family:
		"PingFang TC",     /* macOS (10.11+) */
		"Heiti TC",        /* 古いmacOS */
		"Microsoft JhengHei", 微軟正黑體,  /* Windows */
		"Segoe UI", SegoeUI,           /* 補助英字フォント（Windows） */
		"Helvetica Neue", Helvetica, Arial, sans-serif;  /* 汎用フォールバック */
}
body {margin: 0;}
ul {padding: 0;}

.sound-grid-container {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1rem;
}
@media (max-width: 1023px) {
  .sound-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .sound-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
h3 {
	font-size: 1.3em;
	font-weight: bold;
	text-align: left;
	/* border-bottom: solid 1px #ddd; */
	padding: 0.25em;
	border-left: .25em solid black;
	padding-left: .5rem;
	letter-spacing: .05em;
  line-height: 1.3;
}
h3:first-child {margin-top: 0;}
h4 {
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  background: #e1e1e1;
  margin: 0;
  margin-bottom: 0.5rem;
  padding: 10px;
  line-height: 1.3;
}
h4:not(:first-child) {
  margin-top: 2.25em;
}
@media (max-width: 640px) {
h4:not(:first-child) {
  margin-top: 0.75em;
}
}
h5 {
  font-size: 1.0em;
  font-weight: bold;
  margin: .83em 0 .53em;
  padding-left: .5em;
  border-left: 4px solid #f00;
  line-height: 1.3;
}
h5:not(:first-child) {
  margin-top: 1.75em;
}
.sound-grid-wrap {
  margin-bottom: 3rem;
  padding-top: 6rem;
  margin-top: -6rem;
}
.sound-grid-item {
  border: 1px solid #ffbebe;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: #f8f8f8;
}
.sound-grid-item h5 {
  margin-top: 0;
}
.sound-grid-item h5 + p {
  font-size: 1rem;
  font-weight: 500;
  margin-top: .5em;
}
.sound-grid-item audio {
  width: 100%;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
  .sound-grid-item audio::-webkit-media-controls-panel {
    /* background-color: #e0e0e0; */
    background-color: white;
  }
}
.copyright-association {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  justify-items: end;
  margin-right: 0;
  margin-left: auto;
}

.copyright-association div {
  display: flex;
  align-items: flex-end;
  justify-content: end;
  gap: 1rem;
}

.copyright-association img {
  width: calc(100%/1.1618);
  height: auto;
}

.tab-navigation {
  display: grid;
  gap: 3em;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  justify-content: center;
  margin: 3rem 0 2rem;
}
@media (max-width: 1023px) {
  .tab-navigation {
    gap: 1rem;
  }
}
@media (max-width: 640px) {
  .tab-navigation {
    gap: 13px;
  }
}
.tab-navigation li {
  margin-block-start: 0;
  list-style: none;
}
.tab-navigation li a {
  border: 1px solid #e1e1e1;
  color: black;
  background-color: white;
  text-decoration: none;
  height: 60px;
  line-height: 60px;
  display: block;
  text-align: center;
  font-weight: bolder;
  box-shadow: inset 0px 0px 15px lightgrey;
}
@media (max-width: 640px) {
  .tab-navigation li a {
    height: 43px;
    line-height: 43px;
  }
}
.tab-navigation li a:hover {
  background-color: #ffd8d8;
  box-shadow: none;
}
/* audio タグの改造用 */
.custom-audio-container {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

audio {
  display: inline-block;
}

/* 時間表示の位置調整 */
.custom-time-display {
  position: absolute;
  white-space: nowrap;
  color: #333;
  background: white;
  /* 時間表示の背景内余白 */
  padding: 0 0.3rem;
  /* 時間表示の文字サイズ調整 */
  font-size: 0.875rem;
  transform: translate(-50%, 50%);
}
/* 640px 以下の時 */
@media (max-width: 640px) {
  .custom-time-display {
    display: none;
  }
}
/* Chromiumベースのブラウザのみ */
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution: .001dpcm) {
  @media (min-width: 641px) {
    .custom-time-display {
      top: 5%;
      left: 90px;
    }
  }
}

/* 以下 FireFox用 */
@-moz-document url-prefix() {
  .custom-time-display {
    display: none;
  }
}

/* 以下 safari用 */
::-webkit-full-page-media,
:future,
:root {
  .custom-time-display {
    display: none;
  }
}
