@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
*/

/* 全般のリセット */
* {
  box-sizing: border-box;
}

/*** フォントサイズ、位置 **********************************************/
html {
  font-size: 62.5%;
}

h1 {
  font-size: 2.4rem;
}

p, a {
  font-size: 1.6rem;
}

body, h1, p {
  margin: 0;
  font-family: 'Jost', sans-serif;
}

/* スマートフォン向けの文字サイズとフォント指定 */
@media only screen and (max-width: 600px) {
  h1 {
    font-size: 2.4rem;
  }
  
  p {
    font-size: 1.6rem;
  }
  
  html, body {
    width: 100%;
    margin: 0;
    padding: 0;
  }
}

/*** ヘッダー **********************************************/
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: 100;
}

.brand-logo {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.brand-logo img {
  max-height: 30px;
  width: auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.language-switcher {
  color: #ffffff;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translate(0, -50%);
  font-size: 1.2rem;
}

.language-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  z-index: 1;
}

.language-switcher.active .language-menu {
  display: block;
}

.language-menu a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
}

/* スクロール時のヘッダーの背景 */
#header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
}

#header.scrolled .language-switcher {
  color: #000;
}

/*** 背景画像エリア **********************************************/
.top-background {
  background-image: url('http://gts-demo2.woodbox-lab.com/wp-content/uploads/mori-archive-picture/mori-archive-top.jpeg');
  background-size: cover;
  background-position: center;
  width: 100%;
  padding: 50px 0;
  margin-bottom: 20px;
}

/*** メディア一覧 **********************************************/
.media-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* 3つのブロックに分割 */
  gap: 20px; /* 各アイテム間のスペース */
  padding: 20px;
}

/* 各メディアアイテムのスタイル */
.media-item {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* 左: 画像、中央: 情報、右: QRコード */
  gap: 20px;
  padding: 20px;
  background-color: transparent; /* 不要な背景色を削除 */
  width: 100%;
  margin-bottom: 20px;
}

/* 左側のメディア表示部分 */
.media-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 画像や動画のサムネイルスタイル */
.media-thumbnail {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

/* 中央のメディア情報部分 */
.media-info {
  text-align: left;
}

/* 右側のQRコード部分 */
.media-qr {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.media-qr a {
  margin-bottom: 10px;
  text-align: center;
}

/* ソートボタンのコンテナに余白と中央寄せを追加 */
.sort-buttons {
  display: flex;
  justify-content: center; /* 中央寄せ */
  margin-bottom: 20px; /* 下に余白を追加 */
  padding-left: 40px;  /* 左側に余白を追加 */
}

/* 各ボタンに余白を追加 */
.sort-buttons button {
  margin-right: 10px; /* ボタン間に余白を設定 */
  padding: 10px 15px; /* ボタン内に余白を設定してクリックしやすく */
}

/* メディアリスト全体の余白を調整 */
.media-list-container {
  padding-left: 40px;  /* 左側の余白をさらに広く */
  padding-right: 20px; /* 右側の余白も維持 */
  max-width: 1200px; /* コンテンツ全体の最大幅を設定 */
  margin: 0 auto; /* 全体を中央寄せ */
}

/*** フッター **********************************************/
#footer {
  background-color: black;
  color: white;
  width: 100%;
  margin-top: 60px;
}

#footer .footer-content {
  width: 80vw;
  margin: auto;
}

.footer-small-text {
  font-size: 0.5em;
  color: gray;
  text-align: center;
  padding: 20px;
}
