/* ====== リセットCSS ====== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
blockquote, q { quotes: none; }
blockquote::before, blockquote::after,
q::before, q::after { content: ''; content: none; }

/* ====== 全リンクの統一 ====== */
a {
  text-decoration: none;   /* 下線を消す */
  color: inherit;          /* 親要素の色に従う */
}

a:link,
a:visited {
  color: inherit;
}

a:hover,
a:active {
  color: inherit;
}

/* ====== ボディ基本設定 ====== */
body {
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding-top: 0px; /* headerの高さに合わせて調整 */
  max-width: 960px;
  margin: 0 auto;

}

/* ====== ヘッダー ====== */
header {
  display: flex;
  position: fixed;/* 上部に固定 */
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8); /* 白、透明度80% */
  backdrop-filter: blur(5px); /* 背景が透けても見やすくするぼかし効果 */
  z-index: 1000;          /* メニューやコンテンツより前面に */
  padding: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}  

.logo {
display:flex;
}
header h1 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}
header img {
  max-width: 200px;
  height: auto;
}

/*ハンバーガーここから*/

/* メニューのスタイル */
.menu {
  position: fixed;
  top: 0;
  right: -100%; /* 初期状態では画面の外に隠れている */
  width: 300px;
  height: 500px;
  background-color: #fafad2;
  color: #333;
  transition: right 0.3s ease; /* スライドインのアニメーション */
  padding: 20px;
  box-sizing: border-box;
  z-index: 10;
}

/* メニューが開いているとき */
.menu.open {
  right: 0;
}

/* ボタンのスタイル */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  cursor: pointer;
  z-index: 20;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  margin: 5px 0;
  transition: 0.4s;
}

/* バツ印に変化するスタイル */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* メニューリストのスタイル */
.menu ul {
  list-style-type: none;
  padding: 0;
  margin-top: 80px;
}

.menu li {
  padding: 20px 0;
  border-bottom: 1px solid #444;
}

.menu li a {
  color: #333;
  text-decoration: none;
  display: block;
}

/*　ーーーここまでハンバーガーーー */

/* ナビリンクの色を固定 */
nav ul li a:link,
nav ul li a:visited {
  color: #333 !important;
  font-size: 16px;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a:active {
  color: #979696 !important;
}

/* レスポンシブ */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .logo{
    display:flex;
    flex-direction: column;
  }
  nav ul {
    flex-direction: column;
    width: 100%;
  }
}





/* ====== メイン ====== */
main {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 960px;
  margin: auto;
  padding: 120px 1rem 0px 1rem;
}

/* ====== pタグ ====== */
p {
  color: #333;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-size: 13px;
  line-height: 1.5em;
}

/* ====== バックナンバーグリッド ====== */
.backnumbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.backnumbers li {
  text-align: center;
}

.backnumbers img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* 小さい画面では1列 */
@media (max-width: 600px) {
    .backnumbers {
      grid-template-columns: 1fr;
    }
    }

/* ====== バックナンバー詳細ページ ====== */
.issue {
  display: flex;
  gap: 20px;
  margin-bottom: 3rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2rem;
}

.issue .cover img {
  max-width: 160px;
  height: auto;
}

.issue .details {
  flex: 1;
}

.issue h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    }
    
    .issue h3 {
        font-size: 1.2rem;
        margin: 0;
        color: #ad884e;
      }
    
    .issue h4 {
    font-weight: bold;
        font-size: 0.8rem;
        margin: 0;
        color: #b53b22;
      }
    
    .issue h5 {
    font-weight: bold;
        font-size: 0.8rem;
        margin: 0;
        color: #c9a887;
      }
    
.issue .date {
  font-weight: normal;
  font-size: 0.9rem;
  color: #666;
}

.issue ul {
  margin: 0.5rem 0 1rem 1rem;
}

@media (max-width: 768px) {
  .issue {
    flex-direction: column;
    align-items: center;
  }
  .issue .cover img {
    max-width: 100%;
  }
}


/* ====== コーナー紹介ページ ====== */
.seriese h2 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  color:#c9a887;
        }
  
.seriese h5{
  color:#c9a887;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ====== フッター ====== */
footer {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  border-top: 1px solid #ccc;
  padding: 1rem 0;
  margin-top: 2rem;
}
