:root {
  --main: #000050;
  --black: #222;
  --white: #fdfdfd;
  --link: #0050aa;
  --red : #e60014;
  --blue : #001eff;
  --gray: #ddd;
}

*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
body {
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
img {
  height: auto;
}
a {
  color: inherit;
}
p {
  margin: 0;
}
p + p {
  margin-top: .5rem;
}

html {
  font-size: clamp(14px, 2.4vw, 18px);
}

body {
  color: var(--main);
  text-rendering: optimizeLegibility;
  font-family: "Noto Sans JP", serif;
  font-feature-settings: "palt";
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.8;
  font-size: 1rem;
  background-image: url(img/bg.webp);
  background-position: center top;
  background-size: min(100%, 1680px);
  background-repeat: repeat;
}
@media screen and (max-width: 700px) {
  body {
    background-size: 800px;
  }
}


header {
  position: relative;
  padding: 0;
}
header a {
  display: block;
  width: 30%;
  max-width: 200px;
  margin: 0 auto;
  background: var(--main);
  padding: .6rem 1rem;
  border-radius: 0 0 .5rem .5rem;
}

footer {
  width: 100%;
  background: rgba(0, 0, 0, 0.125);
  text-align: center;
  padding: .5rem 0;
  font-size: 70%;
}
footer p {
  font-feature-settings: normal;
}
footer p span {
  display: inline-block;
  margin: 0 .5em;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

#fv {
  text-align: center;
}
#fv h1 {
  margin: 1rem .2rem;
}
#fv>div {
  border-top: 2px solid var(--main);
  border-bottom: 2px solid var(--main);
  padding: 1.5rem 0 1rem;
  margin: 0 1rem;
}
p.lead {
  font-weight: 800;
  font-size: 1.1rem;
}
p.lead a:hover{
  color: var(--link);
}
p.lead span{
  display: inline-block;
}
a.x_button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  max-width: 18rem;
  margin: 1rem auto;
  color: var(--white);
  text-decoration: none;
  border-radius: .5rem;
  padding: .8rem;
  font-weight: 500;
  border: 2px solid #b4b4c8;
  transition: all .1s;
}
a.x_button .x_id {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
a.x_button .x_id::before {
  display: inline-block;
  content: '';
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: .4rem;
  background: var(--white) url(img/x_logo.png) center / 60% no-repeat;
}
a.x_button span.x_t {
  position: relative;
  background-color: var(--white);
  color: var(--main);
  font-size: .7rem;
  padding: .2rem .4rem;
  border-radius: .2rem;
  transition: all .1s;
}
a.x_button span.x_t::before {
  content: '';
  position: absolute;
  width: .5rem;
  height: .5rem;
  background-color: var(--white);
  top: 0;
  bottom: 0;
  margin: auto;
  left: -.4rem;
  clip-path: polygon(0 50%, 100% 100%, 100% 0);
}
@media (hover: hover) {
  a.x_button:hover {
    border-color: #ffe600;
  }
  a.x_button:hover span.x_t {
    transform: translateX(-.1rem);
  }
}

section.main_sec {
  padding: 1rem;
  margin: 2rem 0 0;
}


#contents h2 {
  background: var(--main);
  display: flex;
  border: 3px solid var(--main);
  color: var(--white);
  margin: 0 0 1rem;
  border-radius: 100px 0 0 100px;
  overflow: hidden;
  padding: 0;
  font-weight: 900;
  font-size: min(6vw, 2rem);
  line-height: 1.3;
}
#contents h2 .number {
  background: var(--white);
  color: var(--main);
  width: 2em;
  text-align: center;
  padding: 0 0 0 .2em;
  display: flex;
  justify-content: center;
  align-items: center;
}
#contents h2 .main_title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: calc(100% - 2em);
  padding: .2em .4em;
}
#contents h2 .main_title span:first-of-type{
  margin-right: .5em;
}
#contents h2 .main_title span.sub{
  font-size: .5em;
  font-weight: 700;
}

/* about */
#about {
  margin-top: 0;
}
.wrap {
  background-color: var(--white);
  padding: 1rem;
  color: var(--black);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 6px;
  border-radius: 4px;
}
#about h2 {
  position: relative;
  margin: 2rem 0 1rem;
  background: var(--main);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 2px;
  text-align: center;
  overflow: hidden;
}
#about h2:first-of-type {
  margin-top: .5rem;
}
#about h2::before, #about h2::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: var(--white);
  padding: 2px 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(-45deg);
  width: 4px;
  height: 200%;
}
#about h2::before {
  left: 10%;
}
#about h2::after {
  right: 10%;
}
#about table {
  display: block;
  margin: 1rem 0;
  padding: 0 .5em;
  border-collapse: collapse;
  border-radius: 4px;
  background: #f7f7f7;
  font-weight: 500;
}
#about table tbody {
  width: 100%;
  display: block;
}
#about table tr {
  width: 100%;
  display: block;
  border-bottom: 1px dotted #aaa;
  padding: .5em 0;
}
#about table tr:last-of-type {
  border-bottom: none;
}
#about table th {
  background: var(--white);
  color: var(--main);
  text-align: center;
  border-radius: 2px;
  vertical-align: middle;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 0 0 1px #dcdcdc;
  width: 100px;
}
@media screen and (max-width: 500px) {
  #about table th {
    width: 70px;
  }
}
#about table td {
  padding: .4em 0 .4em .5em;
  line-height: 1.6;
}
#about table td a:hover {
  color: var(--link);
}
a.nw::after {
  content: '';
  display: inline-block;
  width: .8em;
  height: .8em;
  background: var(--black) url(img/n_w.png) center / 60% no-repeat;
  margin: 0 0 0 .2em;
}
a.nw:hover::after {
  background-color: var(--link);
}
.pay {
  background: #000000;
  text-align: center;
}
.pay img {
  margin: 0 auto;
}
ul.a-list {
  padding: 0;
  list-style: none;
  list-style-position: inside;
  margin: 1rem 0;
  text-align: left;
  font-size: .85rem;
}
ul.a-list li {
  position: relative;
  padding-left: 1.1em;
  line-height: 1.4;
  margin: 0 0 .5em;
}
ul.a-list li::before {
  content: '※';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  display: flex;
  justify-content: center;
}


/* タイトル一覧 */
.title_list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
}
.title_list li {
  position: relative;
  border: 2px solid var(--main);
  cursor: pointer;
}

@media (hover: hover) {
  .title_list li:hover:not(.coming) {
    box-shadow: 0 0 0 3px var(--main);
    border-color: var(--white);
  }
}
.title_img {
  position: relative;
}
.title_img img {
  width: 100%;
}
.title_img.no_img,.title_img.other {
  background: var(--white);
}
.title_img.no_img span{
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  font-weight: 800;
  font-size: 1.2em;
  text-align: center;
  line-height: 1.4;
}
.title_img.other>div {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  align-content: center;
  font-weight: 800;
  font-size: 1.2em;
}
.title_img.other>div div.subtitle{
  font-size: clamp(10px, 3vw, 14px);
  background: #e6e6eb;
  padding: .8em;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin: .8rem 0 0;
}
@media screen and (max-width: 1200px) {
  .title_img.no_img span,.coming span,.other span{
    font-size: 1.8vw;
  }
}
@media screen and (max-width: 1000px) {
  .title_img.no_img span,.coming span,.other span{
    font-size: 2.3vw;
  }
}
@media screen and (max-width: 600px) {
  .title_img.no_img span,.coming span,.other span{
    font-size: 3.8vw;
  }
}
.goods_show {
  position: relative;
  background: var(--main);
  color: var(--white);
  padding: 0.2em 1.7em 0.35em;
  text-align: right;
  font-size: 1rem;
  font-weight: 600;
}
.goods_show::before {
  position: absolute;
  content: '';
  display: block;
  right: .5em;
  top: 0;
  bottom: 0;
  margin: auto;
  width: .9em;
  height: .9em;
  background: url(img/arrow_right_white.png) no-repeat;
  background-size: contain;
}
@media screen and (max-width: 1000px) {
  .title_list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media screen and (max-width: 600px) {
  .title_list {
    grid-template-columns: 1fr 1fr;
    gap: .5em;
  }
}


/* モーダル */
body.modal-open {
  overflow: hidden;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  position: relative;
  width: 96%;
  max-width: 1200px;
  height: 98dvh;
  box-sizing: border-box;
  padding: 0;
  background: var(--white);
  border: 2px solid var(--main);
  border-radius: .5rem;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.is-open .modal-content {
  transform: translateY(0);
}

/* ========================================
   モーダル用コンテンツ
======================================== */
.modal-custom-content {
  display: none;
}
.modal-custom-content.is-active {
  display: block;
}

/* ========================================
   タイトル
======================================== */

.modal-close {
  position: sticky;
  top: .5rem;
  right: .5rem;
  z-index: 1001;
  width: 2.8rem;
  height: 2.8rem;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  line-height: 1;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  border: 2px solid var(--main);
  text-shadow: 1px 1px 1px var(--main);
  font-weight: 900;
  font-size: 2.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-close-bottom {
  display: block;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  max-width: 500px;
  width: 90%;
  text-align: center;
  margin: 1.6rem auto;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: 800;
  text-shadow: 1px 1px 1px var(--main);
  padding: .3em;
  letter-spacing: 3px;
  border: 2px solid var(--main);
}


/* ========================================
   商品一覧
======================================== */
.modal-content-inner {
  padding: 0 1rem;
}
.goods-section {
  margin: 0;
  padding: 0;
}
.goods-section h2 {
  background-color: var(--main);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 100px 0 0 100px;
  padding: .2rem 1rem;
  margin: 0 0 .8rem;
}
.goods-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}
.goods-item {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  line-height: 1.4;
  color: #444;
  border: 1px solid var(--gray);
  background-color: #fff;
  border-right: none;
  border-top: none;
}

.goods-link {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
}
.goods-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.goods-category {
  font-size: .65rem;
  margin-top: .2rem;
}
.goods-category span {
  margin-right: 4px;
  padding: 0 4px;
}
.goods-category span.new {
  color: var(--red);
  border: 1px solid var(--red);
}
.goods-category span.senko {
  color: var(--white);
  border: 1px solid var(--blue);
  background: var(--blue);
}
.goods-category span.gentei {
  color: var(--white);
  border: 1px solid var(--red);
  background: var(--red);
}

.goods-name {
  font-size: min(.8rem, 13px);
}
li.goods-ren .goods-name {
  font-family: "Kosugi", "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.goods-size {
  font-size: .65rem;
}

.goods-size span {
  margin-left: 4px;
  border: 1px solid var(--gray);
  padding: 0 4px;
}

.goods-price {
  text-align: right;
  margin-top: auto;
  font-size: 1rem;
  line-height: 1;
  font-weight: 600;
  color: var(--main);
}
.goods-tax {
  font-size: .6em;
}

@media screen and (max-width: 800px) {
  .goods-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 600px) {
  .goods-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .goods-item {
    padding: 6px;
  }
  .goods-price {
    font-size: 1.1rem;
  }
}

@media screen and (min-width: 801px) {
  .goods-list .goods-item:nth-child(-n+4) {
    border-top: 1px solid var(--gray);
  }
  .goods-list .goods-item:nth-child(4n),.goods-list .goods-item:last-child {
    border-right: 1px solid var(--gray);
  }
}
@media screen and (min-width: 601px) and (max-width: 800px) {
  .goods-list .goods-item:nth-child(-n+3) {
    border-top: 1px solid var(--gray);
  }
  .goods-list .goods-item:nth-child(3n),.goods-list .goods-item:last-child {
    border-right: 1px solid var(--gray);
  }
}
@media screen and (max-width: 600px) {
  .goods-list .goods-item:nth-child(-n+2) {
    border-top: 1px solid var(--gray);
  }
  .goods-list .goods-item:nth-child(2n),.goods-list .goods-item:last-child {
    border-right: 1px solid var(--gray);
  }
}


/* tokuten */
.tokuten-icon::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -3%;
  width: 38%;
  height: 150px;
  background: url(img/tokuten-icon.png) no-repeat;
  background-size: contain;
  background-position: bottom;
  z-index: 1;
}
h2.tokuten-title {
  background-color: var(--main);
  color: #ffff00;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 100px 0 0 100px;
  padding: .2rem 1rem;
  margin: 0 0 1rem;
}
a.tokuten-online {
  position: relative;
  display: block;
  color: var(--main);
  background: #ffff00;
  border: 2px solid var(--main);
  box-shadow: 0 3px 0px var(--main);
  text-decoration: none;
  text-align: center;
  margin: 1rem auto 2.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  padding: .5rem;
  border-radius: .5rem;
  letter-spacing: 1px;
  max-width: 500px;
  width: 80%;
  transition: all .2s;
}
a.tokuten-online::before {
  content: '';
  background: url(img/arrow_right.png) no-repeat;
  background-size: 100%;
  background-position: center;
  width: 1.2em;
  height: 1.2em;
  position: absolute;
  right: .9em;
  top: 0;
  bottom: 0;
  margin: auto;
  transition: all .2s;
}
@media (hover: hover) {
  a.tokuten-online:hover {
    transform: translateY(3px);
    box-shadow: 0 0 0 var(--main);
  }
  a.tokuten-online:hover::before {
    transform: translateX(2px);
  }
}

.tokuten-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
@media screen and (max-width: 600px) {
  .tokuten-img {
    grid-template-columns: 1fr;
  }
}
#about table.tokuten-info tr {
    padding: 1em 0 .8em;
}
#about table.tokuten-info th {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  box-shadow: none;
  padding: 0 .5em;
}
#about table.tokuten-info th span{
  background: var(--white);
  padding: 0 8px;
  border: 1px solid var(--main);
  margin: 0 4px 4px 0;
  display: inline-block;
}
#about table.tokuten-info td {
  display: block;
  width: 100%;
  padding: 0 .5em;
}