*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
}

body.old-games-body{
  background:#cfc8b6;
  color:#1d1d1a;
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif;
  line-height:1.9;
}

a{
  color:inherit;
}

/* HEADER */
.site-header{
  background:#292821;
  color:#e9e4d7;
  border-bottom:4px double #8b8474;
}

.site-header-inner{
  width:min(1100px, calc(100% - 40px));
  margin:0 auto;
  padding:14px 0;
}

.site-header a{
  font-family:"MS PGothic","Yu Gothic",sans-serif;
  font-size:15px;
  font-weight:700;
  text-decoration:none;
}

/* FOOTER */
.site-footer{
  margin-top:70px;
  background:#292821;
  color:#e9e4d7;
  border-top:4px double #8b8474;
}

.site-footer-inner{
  width:min(1100px, calc(100% - 40px));
  margin:0 auto;
  padding:24px 0;
  font-size:12px;
}

.site-footer a{
  text-decoration:none;
}

/* PAGE */
.archive-page{
  width:min(1100px, calc(100% - 40px));
  margin:0 auto;
  padding:56px 0 90px;
}

.archive-header{
  padding-bottom:24px;
  border-bottom:3px double #292821;
}

.archive-header h1{
  margin:0;
  font-family:"MS PGothic","Yu Gothic",sans-serif;
  font-size:34px;
  line-height:1.45;
  font-weight:700;
}

/* TOP LIST */
.game-list{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:34px 28px;
  padding-top:38px;
}

.game-card{
  display:block;
  text-decoration:none;
}

.package-frame{
  aspect-ratio:3/4;
  padding:9px;
  background:#e9e4d7;
  border:1px solid #5d594e;
  box-shadow:4px 5px 0 rgba(60,55,45,.20);
}

.package-frame img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.game-card h2{
  margin:13px 0 0;
  font-size:16px;
  line-height:1.6;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* DETAIL */
.detail-page{
  max-width:980px;
}

.back-link{
  margin-bottom:26px;
  font-size:13px;
}

.back-link a{
  text-decoration:none;
}

.detail-header{
  display:block;
  width:100%;
  padding:0 0 24px;
  border-bottom:3px double #292821;
}

/* detail-header に grid-template-columns はありません */
.detail-header h1{
  margin:0;
  font-family:"MS PGothic","Yu Gothic",sans-serif;
  font-size:38px;
  line-height:1.35;
}

.article-body{
  width:100%;
  padding:38px 0 50px;
  font-size:16px;
}

.article-body p{
  margin:0 0 28px;
}

.article-body h2{
  margin:46px 0 18px;
  padding-bottom:6px;
  border-bottom:1px solid #4b483f;
  font-family:"MS PGothic","Yu Gothic",sans-serif;
  font-size:22px;
}

.article-body ol{
  margin:0;
  padding-left:1.6em;
}

.article-body li{
  margin-bottom:12px;
}

/* PHOTOS
   PC: 3列 */
.photo-gallery{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
  width:100%;
}

.photo-link{
  display:block;
  min-width:0;
  text-decoration:none;
}

.photo-link img{
  cursor:zoom-in;
}

.photo-gallery img{
  display:block;
  width:100%;
  height:auto;
  margin:0;
  border:1px solid #5d594e;
  background:#aaa394;
}

.photo-gallery-top{
  margin:40px 0 60px;
}

/* REFERENCE */
.reference{
  margin-top:60px;
  padding-top:16px;
  border-top:1px dotted #59564c;
  font-size:12px;
  line-height:1.7;
}

.reference p{
  margin:0 0 5px;
}

.reference a{
  text-decoration:underline;
  text-underline-offset:3px;
}

/* 参考文献と下の写真集を大きく離す */
.photo-gallery-reference{
  margin-top:220px;
}

/* TABLET */
@media(max-width:900px){
  .game-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

/* SMARTPHONE: 写真は2列 */
@media(max-width:700px){
  .site-header-inner,
  .site-footer-inner,
  .archive-page{
    width:calc(100% - 26px);
  }

  .archive-page{
    padding-top:32px;
  }

  .archive-header h1{
    font-size:28px;
  }

  .game-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:28px 18px;
  }

  .detail-header h1{
    font-size:28px;
  }

  .article-body{
    font-size:15px;
  }

  .photo-gallery{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
  }

  .photo-gallery-reference{
    margin-top:150px;
  }
}

@media(max-width:480px){
  .detail-header h1{
    font-size:25px;
  }
}
