@charset "UTF-8";
.header {
  background-color: #FFF;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 50px;
  border-bottom: 1px solid #dadada;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.header .logo {
  width: 100px;
  height: 35px;
}

.logo {
  background-image: url(../img/logo.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.cart-btn {
  width: 32px;
  height: 32px;
  background-image: url(../img/cart_icon.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  cursor: pointer;
  margin-right: 12px;
  padding: 0;
  background-color: white;
  transition: background 0.15s;
  position: relative;
}

/* カート商品数バッジ */
.cart-count-badge {
  position: absolute;
  box-sizing: content-box;
  top: -6px;
  right: -6px;
  width: 15px;
  height: 15px;
  background: #ff1818;
  color: #fff;
  font-size: 13px;
  font-family: arial;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

.login-area {
  display: flex;
  align-items: center;
  position: fixed;
  top: 9px;
  right: 16px;
  z-index: 200;
}

#userNickname {
  margin-right: 12px;
  font-weight: bold;
  color: #000000;
  font-family: sans-serif;
}

button#loginBtn {
  background-color: #ff1818;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 15px;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
  font-family: sans-serif;
}

button#loginBtn:hover {
  background-color: #d80000;
}

.menu-area {
  display: inline-block;
  position: relative;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 3px;
  background: #333;
  margin: 5px 0;
  border-radius: 2px;
  transition: background 0.2s;
}

.menu-list {
  display: none;
  position: fixed;
  left: 10px;
  top: 60px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1333333333);
  min-width: 200px;
  z-index: 300;
  padding: 6px 0;
}

.menu-item {
  font-family: "Mochiy Pop P One", sans-serif;
  font-weight: normal;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 1rem;
  color: #222;
  transition: background 0.15s;
}

.menu-item:hover {
  background: #f5f5f5;
}

/* ログインモーダル用 */
#login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.3);
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  min-width: 320px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: sans-serif;
  font-size: 14px;
}
.modal-content .close {
  position: absolute;
  top: 0px;
  right: 8px;
  cursor: pointer;
  font-size: 28px;
  color: darkgray;
}
.modal-content .login-guide, .modal-content .signup-guide {
  margin-bottom: 12px;
  color: #333;
}
.modal-content .login-guide {
  font-weight: bold;
}
.modal-content form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 8px auto;
}
.modal-content input {
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #d3d3d3;
  height: 36px;
  text-indent: 8px;
  margin-bottom: 4px;
}
.modal-content button {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  background-color: #ff1818;
  color: #FFF;
  font-size: 15px;
  font-weight: bold;
  margin-top: 8px;
  border: none;
  text-align: center;
}
.modal-content button:disabled {
  background-color: #ccc;
  color: #999;
  cursor: not-allowed;
  opacity: 0.7;
}
.modal-content #login-result, .modal-content #signup-result {
  color: #F60B0B;
  margin-top: 4px;
}

.terms-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terms-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  padding: 32px 24px 24px 24px;
  max-width: 420px;
  width: 90vw;
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 80px;
}

.terms-title {
  font-weight: bold;
  margin-bottom: 12px;
}

.terms-message {
  font-size: 0.9em;
  margin-bottom: 12px;
  color: #333;
}

.terms-content-wrap {
  font-size: 0.8em;
  margin-bottom: 10px;
}

.terms-content {
  height: 300px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 1em;
  line-height: 1.6;
  background: #fafafa;
  border-radius: 6px;
}

.terms-article-contents {
  margin-bottom: 8px;
}
.terms-article-contents .terms-article-list {
  list-style-type: revert-layer;
  padding-left: 20px;
}
.terms-article-contents .terms-article-string {
  list-style-type: decimal;
  padding-left: 20px;
}

.terms-agree-row label {
  display: flex;
  align-items: center;
  gap: 6px; /* チェックボックスと文字の間隔調整 */
}
.terms-agree-row label input {
  margin: 0;
}
.terms-agree-row label a {
  color: #ff5252;
  text-decoration: underline;
  cursor: pointer;
}

.terms-btn-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.terms-btn-row .terms-btn {
  height: 40px;
  padding: 0px 18px;
  border-radius: 6px;
  border: none;
  background: #e0e0e0;
  color: #333;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.terms-btn-row .terms-btn:disabled {
  background: #ccc;
  color: #999;
  cursor: not-allowed;
}
.terms-btn-row .terms-btn:not(:disabled):hover,
.terms-btn-row .terms-btn:not(:disabled):focus {
  background: #ff5252;
  color: #fff;
}

body {
  background: #fff;
}

header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #eee;
  z-index: 1;
}

.sort-nav {
  margin: 30px 10px 10px 0;
  text-align: right;
  font-family: sans-serif;
}
.sort-nav span, .sort-nav a {
  margin: 0 4px;
}

#grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  padding: 10px;
}

.card {
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1/1;
  position: relative;
}

.card a {
  display: block;
  width: 100%;
  height: 100%;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card img.ready {
  opacity: 1;
}

#status {
  text-align: center;
  padding: 1rem;
  color: #666;
}

#sentinel {
  height: 1px;
}

.like-wrap {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 2px 8px 2px 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.like-btn {
  background: none;
  border: none;
  padding: 0;
  margin-right: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  outline: none;
  transition: transform 0.1s;
}

.like-btn:active {
  transform: scale(1.15);
}

.like-btn.liked {
  opacity: 1;
}
.like-btn.liked svg {
  fill: #e74c3c;
  filter: none;
}

.like-count {
  font-size: 15px;
  color: #e74c3c;
  font-weight: bold;
  min-width: 1.5em;
  text-align: right;
}

#footer {
  width: 100%;
  height: 40px;
  background-color: #313131;
  color: #FFF;
  display: flex;
  justify-content: center;
  align-items: center;
}
#footer .socologo {
  width: 100px;
  height: 20px;
  background-image: url(../img/socologo.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/*# sourceMappingURL=list.css.map */
