@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@500;700&display=swap");

body {
  line-height: 1.6;
  color: #231815;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  min-width: 707px;
  height: 100%;
}
@media screen and (max-width: 706px) {
  body {
    min-width: 100px;
  }
}
p,
div,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
section,
header,
footer {
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  vertical-align: bottom;
}
video {
  outline: none;
}
/* ::-webkit-scrollbar {
	width: 6px;
}
::-webkit-scrollbar-track {
	background: transparent;
	border: none;
}
::-webkit-scrollbar-thumb {
	background: #ec662e;
} */

/* 共通 */
.size-n {
  width: 90%;
  max-width: 707px;
  margin: 0 auto;
}
.center {
  text-align: center;
}
.right {
  text-align: right;
}
.bold {
  font-weight: 700;
}

body.detailOpen {
  height: 100%;
  overflow: hidden;
}

.sub_topbox {
  position: relative;
}
.content_name {
  margin: 0 auto;
}

/* list */
#list {
  background: #fff7ed;
  padding: 52px 0;
}
.listHeader1 {
  background: #ec662e;
  color: #fff;
}
.listHeader1 h2 {
  font-size: 1.075rem;
  height: 50px;
  line-height: 50px;
  padding-left: 1em;
  position: relative;
}
.listHeader1 h2:before {
  content: "";
  width: 4px;
  height: 20px;
  background: #fff;
  border-radius: 4px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
}
.listHeader2 {
  background: #fff;
  border-bottom: 1px solid #f3f3f3;
}
.listHeader2 h1 {
  color: #ec662e;
  font-size: 1.3125rem;
  height: 55px;
  line-height: 55px;
}

.photoListArea {
  /* padding: 10px 0; */
  min-height: calc(100vh - 200px);
}

.photoListArea ul {
  display: flex;
  flex-wrap: wrap;
}
.photoListArea ul li {
  width: 160px;
  height: 160px;
  margin-left: calc((100% - 640px) / 3);
  background: #fff;
  border-radius: 10px;
  padding: 10px;
}
.photoListArea ul li:nth-child(4n + 1) {
  margin-left: 0;
}
.photoListArea ul li:nth-child(n + 5) {
  margin-top: 20px;
}
.photoListArea ul li img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 706px) {
  .photoListArea ul li {
    width: calc((100% - 10px) / 2);
    /* height: auto; */
    margin-left: 10px;
  }
  .photoListArea ul li:nth-child(2n + 1) {
    margin-left: 0;
  }
  .photoListArea ul li:nth-child(n + 3) {
    margin-top: 10px;
  }
}

.photoListArea ul li a {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* detail */
#detail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8dd93;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: 0.2s ease;
}
#detail.on {
  /* display: block; */
  opacity: 1;
  z-index: 100;
  pointer-events: visible;
}

#detail #closeBtn {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  transition: 0.2s ease;
}
#detail #closeBtn:hover {
  opacity: 0.7;
}

#detail .arrowBtn {
  position: absolute;
  width: 24px;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  cursor: pointer;
}
body #detail .arrowBtn img {
  height: auto;
}
body.sp #detail .arrowBtn {
  width: 20px;
  right: 5px;
}
#detail .arrowBtn.prev {
  right: auto;
  left: 10px;
}
body.sp #detail .arrowBtn.prev {
  right: auto;
  left: 5px;
}
@media (orientation: portrait) {
  #detail #closeBtn {
    top: 10px;
  }
  body.sp #detail .arrowBtn {
    width: 18px;
    top: auto;
    bottom: 6px;
    transform: none;
    right: 20px;
  }

  body.sp #detail .arrowBtn.prev {
    right: auto;
    left: 20px;
  }
}

#detail .arrowBtn.prev img {
  transform: rotate(-180deg);
}

#detail #dBoxArea {
  height: 100%;
}

#detail .dBox {
  width: 100%;
  height: 100%;
  padding: 40px;
  justify-content: center;
  align-items: center;
  display: none;
}
body.sp #detail .dBox {
  padding: 20px;
}
body.sp #detail .dBox.tate {
  padding: 20px 30px;
}
body.sp #detail .dBox.yoko {
  padding: 45px 20px;
}
#detail .dBox.on {
  display: flex;
}
#detail .dBox .dBoxWrap {
  overflow: hidden;
}

.dBox .photoArea {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.dBox .photoArea img {
  border: 5px solid #fff;
  display: block;
  box-sizing: border-box;
  width: calc(100vw - 80px);
  height: auto;
}
body.sp .dBox .photoArea img {
  width: calc(100vw - 40px);
}
.dBox .textArea {
  max-width: 560px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 10px;
  padding: 10px 20px;
}
body.sp .dBox .textArea {
  padding: 10px;
}
.dBox .textArea ruby rt {
  -webkit-text-size-adjust: 100%;
  font-size: 10px;
  zoom: 0.6;
}
.dBox .textArea h3 {
  color: #f18d00;
  border-bottom: 1px solid #c9caca;
  padding-bottom: 5px;
}
body.sp .dBox .textArea h3 {
  font-size: 1.2rem;
}
.dBox .textArea .text {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 10px 0 0;
}

.dBox .textArea .stext {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 10px;
}

.dBox.tate .dBoxWrap {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}
.dBox.tate .photoArea {
  max-height: 100%;
}
.dBox.tate .photoArea img {
  max-height: 100%;
}
.dBox.tate .textArea {
  width: auto;
  /* max-width: 40%; */
  margin-left: 20px;
  margin-top: 0;
}
body.sp .dBox.dir-tate.tate .textArea {
  max-width: 48%;
}
body.sp .dBox.dir-yoko.tate .textArea {
  max-width: 33%;
}
