body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 100px;
  background: #f9f9f9;
  color: #333;
  letter-spacing: 0.05em;
}
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: transparent;
  padding: 0;
  z-index: 10;
}

header::after {
  display: none;
  content: none;
}

.site-header-above {
  position: relative;
  height: 65px;
  line-height: 65px;
  background: rgba(0, 0, 0, 0.9);
  background: linear-gradient(180deg, #222222, #343434);
  color: #fff;
  text-align: center;
}

.site-header-above::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    #ae8625 0%,
    #f7ef8a 30%,
    #d2ac47 70%,
    #edc967 100%
  );
}

.gray-out-link {
  color: #aaa;
  pointer-events: none; /* クリック無効化 */
  opacity: 0.6;
  cursor: default;
  text-decoration: none;
}
.gray-out-link:hover {
  color: #aaa;
  text-decoration: none;
}

.site-header-title,.site-header h1 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0;
}

.site-header-title a, .site-header h1 a {
  text-decoration: none;
  color: #fff;
}

.site-header-title span, .site-header h1 span {
  position: relative;
  top: -4px;
  font-size: 1rem;
}

/* ナビゲーション全体 */
.global-nav {
  height: 60px;
  line-height: 60px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  font-family: sans-serif;
  box-shadow: 0px 1px 6px #ddd;
}

/* リスト */
.nav-list {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  list-style: none;
  padding: 0;
}

/* リンクアイテム */
.nav-item {
  position: relative;
  text-align: center;
}

.nav-item::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 1px;
  height: 100%;
  background: #e3e3e3;
}

.nav-item:last-child::after {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 1px;
  height: 100%;
  background: #e3e3e3;
}

/* リンク */
.nav-link {
  display: flex;
  flex-direction: column;
  /* アイコンとテキストを縦に並べる */
  align-items: center;
  color: #444;
  text-decoration: none;
  transition: color 0.3s;
}

.gray-out-link {
  color: #ddd;
  cursor: not-allowed;
}

.nav-link:hover {
  color: #ff5722;
}

.gray-out-link:hover {
  color: #ddd;
}

/* アイコン画像 */
.nav-link img {
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
  object-fit: contain;
}

/* テキスト */
.nav-text {
  font-size: 0.9rem;
  letter-spacing: 0.125rem;
  white-space: nowrap;
  font-weight: 700;
}

/* ===== ハンバーガー（PCでは非表示） ===== */
.hamburger {
  display: none;
  /* PCでは隠す */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.site-header.is-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .hamburger span:nth-child(3) {
  transform: translateY(-17px) rotate(-45deg);
}

/* ===== オーバーレイ ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.25s;
}

.site-header.is-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* スマートフォン向け調整 */
@media screen and (max-width: 767px) {
  .site-header-above {
    text-align: left;
    padding-left: 2%;
  }

  .global-nav {
    display: none;
  }

  .nav-list {
    justify-content: flex-start;
    overflow-x: auto;
    /* 横スクロールを可能に */
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
  }

  .nav-item {
    flex-shrink: 0;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    flex-direction: column;
  }

  /* グローバルナビを右側からスライド表示するドロワーに */
  .global-nav {
    display: block;
    /* ここで表示に戻す */
    position: fixed;
    z-index: 1000;
    top: 65px;
    right: 0;
    width: 82vw;
    max-width: 320px;
    height: calc(100vh - 65px);
    background: #fff;
    border-left: 1px solid #ddd;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-header.is-open .global-nav {
    transform: translateX(0);
  }

  /* 縦並びメニュー */
  .nav-list {
    display: flex;
    flex-direction: column;
    max-width: none;
    margin: 0;
    padding: 8px 0;
    gap: 0;
    margin-top: 20px;
  }

  .nav-item {
    text-align: left;
  }

  .nav-item::before,
  .nav-item:last-child::after {
    display: none;
  }

  /* 仕切り線は不要 */

  .nav-link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px;
    font-size: 1rem;
    line-height: 1.4;
    border-bottom: 1px solid #ddd;
  }

  .nav-link img {
    width: 28px;
    height: 28px;
    margin: 0 10px 0 0;
  }

  .nav-text {
    font-size: 1rem;
  }

  /* 本文の上マージンはそのまま（#top の padding-top） */
}

@media screen and (max-width: 601px) {
  .site-header-title span, .site-header h1 span {
    display: none;
  }
}

/* 画面固定（メニュー開時） */
body.no-scroll {
  overflow: hidden;
}
.search-form {
  position: relative;
  background: #fff;
  padding: 20px;
  text-align: center;
}

/* comming soon の背景 */
.search-form::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%; /* 高さも100%にして全体を覆うように変更 */
  background: rgba(0, 0, 0, 0.6); /* 背景色をより暗くしてコントラストを強調 */
  z-index: 98; /* 文字より下に配置 */
}

/* comming soon の文字 */
.search-form::before {
  position: absolute;
  /* content: "COMING SOON"; */
  content: "準備中";
  letter-spacing: 0.05rem;
  color: #fff;
  font-size: 24px; /* フォントサイズを大きくする */
  font-weight: bold; /* 太字にする */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* テキストに影を追加 */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 99;
  letter-spacing: 2px; /* 文字間隔を少し広げて読みやすくする */
}

.search-form input[type="text"],
.search-form select {
  padding: 10px;
  width: 200px;
  margin: 5px;
}
.search-form button {
  padding: 10px 20px;
  vertical-align: middle;
  background: #f66;
  color: azure;
  letter-spacing: 0.325em;
  text-align: center;
  border: none;
  border-radius: 5px;
}

.section {
  padding: 80px 15px 0;
  max-width: 1000px;
  margin: auto;
}
section.last-section {
  padding-bottom: 80px;
}
.section h2 {
  border-left: 6px solid #f66;
  padding-left: 10px;
  margin-bottom: 20px;
}
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}
.card {
  width: 100%;
  height: auto;
  background: rgba(0, 0, 0, 0.9);
  background-color: #333;
  color: #fff;
  border-radius: 4px;
  text-align: center;
  box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.card p {
  margin: 6px 5px;
  font-size: 15px;
}

.image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 2px 2px 0 0;
}

.image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px 2px 0 0;
}

.image1 {
  background: url("https://ebook-assets.dmm.co.jp/digital/e-book/k740aplst07269/k740aplst07269pl.webp")
    no-repeat top center;
  background-size: contain;
}
.image2 {
  background: url("https://ebook-assets.dmm.co.jp/digital/e-book/k568agotp09357/k568agotp09357pl.webp")
    no-repeat top center;
}
.image3 {
  background: url("https://ebook-assets.dmm.co.jp/digital/e-book/k568agotp01154/k568agotp01154pl.webp")
    no-repeat top center;
}
.image4 {
  background: url("https://ebook-assets.dmm.co.jp/digital/e-book/k740aplst02884/k740aplst02884pl.webp")
    no-repeat top center;
}
.image5 {
  background: url("https://ebook-assets.dmm.co.jp/digital/e-book/k568agotp00191/k568agotp00191pl.webp")
    no-repeat top center;
}
.image6 {
  background: url("https://ebook-assets.dmm.co.jp/digital/e-book/k740aplst07235/k740aplst07235pl.webp")
    no-repeat top left;
}
.image7 {
  background: url("https://ebook-assets.dmm.co.jp/digital/e-book/s078astod00311/s078astod00311pl.webp")
    no-repeat top left;
}
.image8 {
  background: url("https://ebook-assets.dmm.co.jp/digital/e-book/k568agotp02284/k568agotp02284pl.webp")
    no-repeat top left;
}
.image9 {
  background: url("https://ebook-assets.dmm.co.jp/digital/e-book/b556aesdt00191/b556aesdt00191pl.webp")
    no-repeat top center;
}
.image10 {
  background: url("https://ebook-assets.dmm.co.jp/digital/e-book/b600dsgk18081/b600dsgk18081pl.webp")
    no-repeat top right;
}
.image11 {
  background: url("https://ebook-assets.dmm.co.jp/digital/e-book/k740aplst03241/k740aplst03241pl.webp")
    no-repeat top center;
}
.image12 {
  background: url("https://ebook-assets.dmm.co.jp/digital/e-book/b401btmep09889/b401btmep09889pl.webp")
    no-repeat top center;
}

.card:hover {
  filter: opacity(0.9);
}
/* 画像が大きくなる効果 */
.card:hover .image {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
.genre-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.genre-list a {
  background: #eee;
  padding: 8px 12px;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}
/* footer */
footer {
  position: relative;
  background: linear-gradient(180deg, #343434, #222222);
  color: #fff;
  text-align: center;
  padding: 20px 0 10px;
  position: relative;
}
footer::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    #ae8625 0%,
    #f7ef8a 30%,
    #d2ac47 70%,
    #edc967 100%
  );
}
.footer-list {
  max-width: 620px;
  width: 80%;
  padding: 0;
  margin: 40px auto 30px;
  list-style-type: none;
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-list-item {
  position: relative;
  padding: 0 16px;
}

.footer-list-item a {
  color: inherit;
  text-decoration: none;
}

/* 縦線（区切り）を右側に入れる */
.footer-list-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1em;
  background-color: #fff;
}

.footer-warning {
  font-size: 0.8rem;
}

.footer-wrap small {
  font-size: 0.7rem;
}

/* スクロールトップボタンのスタイル */
.scroll-to-top {
  display: none; /* 最初は非表示 */
  position: fixed; /* 画面に固定 */
  bottom: 20px; /* 下からの位置 */
  right: 20px; /* 右からの位置 */
  z-index: 1000; /* 他の要素より手前に表示 */
  background: linear-gradient(
    180deg,
    rgba(52, 52, 52, 0.7),
    rgba(34, 34, 34, 0.7)
  ); /* ボタンの背景色 */
  color: white; /* 文字色 */
  border: none;
  border-radius: 50%; /* 丸い形にする */
  width: 50px; /* 幅 */
  height: 50px; /* 高さ */
  font-size: 24px; /* アイコンのサイズ */
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 影 */
  transition: opacity 0.3s ease-in-out; /* フェードイン・アウトのアニメーション */
  display: flex; /* アイコンを中央に配置するためのFlexbox */
  justify-content: center;
  align-items: center;
  opacity: 0; /* 最初は透明 */
  pointer-events: none; /* 透明な状態ではクリックできないようにする */
}

/* ボタンが表示される時のスタイル */
.scroll-to-top.show {
  opacity: 1; /* 不透明にして表示 */
  pointer-events: auto; /* クリックできるようにする */
}

/* ホバー時のスタイル */
.scroll-to-top:hover {
  background-color: rgba(34, 34, 34, 0.9); /* ホバーで少し暗くする */
}
/* レスポンシブデザイン */
@media screen and (max-width: 760px) {
  .footer-list {
    width: 96%;
  }
  .footer-list-item {
    padding: 0 14px;
  }
}
@media screen and (max-width: 600px) {
  /* トップページ */
  /* footer */
  .footer-list {
    display: block;
  }
  .footer-list-item {
    margin-bottom: 16px;
  }
  .footer-list-item:not(:last-child)::after {
    right: 50%;
    left: 50%;
    top: 140%;
    transform: translate(-50%, 0);
    width: 30px;
    height: 1px;
    background-color: #fff;
    background-color: #fff;
  }
}
@media screen and (max-width: 500px) {
  .site-header-title, h1 {
    font-size: 1.8rem;
  }
  .site-header-above {
    padding-left: 4%;
  }
  .section {
    padding: 20px 15px 0;
  }
  .section h2 {
    font-size: 18px;
  }
}
