@import url('https://fonts.googleapis.com/css2?family=Yomogi&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  font-family: 'Zen Maru Gothic', sans-serif;
  background: linear-gradient(180deg, #fff8ef 0%, #fdf1e6 100%);
  color: #5c4a3a;
  min-height: 100vh;
}

.site-header {
  text-align: center;
  padding: 24px 20px 24px;
}

.site-header h1 {
  font-family: 'Yomogi', cursive;
  font-size: 2rem;
  color: #a97c5c;
  margin: 0 0 12px;
}

.site-header h1.header-image {
  margin: 0 auto 16px;
  max-width: 600px;
}

.site-header h1.header-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.subtitle {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #8a7161;
}

.price-note {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #a97c5c;
  background: #fdf1e6;
  border: 1px solid #e8d5bf;
  padding: 6px 16px;
  border-radius: 999px;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 10px 0 28px;
}

.month-nav-btn {
  background: #fffdf9;
  border: 1px solid #e8d5bf;
  color: #a97c5c;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: background 0.15s ease;
}

.month-nav-btn:hover {
  background: #f6e6d3;
}

.current-month {
  font-size: 1.1rem;
  font-weight: 700;
  color: #5c4a3a;
  min-width: 110px;
  text-align: center;
}

.empty-msg {
  text-align: center;
  color: #a98f7c;
  padding: 40px 0;
}

.empty-msg.hidden {
  display: none;
}

.month-nav-bottom {
  margin-top: 32px;
  margin-bottom: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

.art-card {
  background: #fffdf9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(169, 124, 92, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  border: 1px solid #f3e3d0;
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(169, 124, 92, 0.2);
}

.art-card .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f6e6d3, #eed6c3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}

.art-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.art-card .card-info {
  padding: 10px 12px 14px;
}

.art-card .card-date {
  font-size: 0.75rem;
  color: #a98f7c;
}

.art-card .card-title {
  font-size: 0.9rem;
  margin-top: 2px;
  color: #5c4a3a;
}

.sold-ribbon {
  position: absolute;
  top: 12px;
  right: -34px;
  background: #c98a6b;
  color: #fff;
  font-size: 0.65rem;
  padding: 3px 32px;
  transform: rotate(35deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  white-space: nowrap;
}

.contact-section {
  max-width: 520px;
  margin: 48px auto 8px;
  padding: 24px 22px;
  background: #fdf6ee;
  border: 1px solid #e8d5bf;
  border-radius: 18px;
}
.contact-title {
  font-family: 'Yomogi', cursive;
  font-size: 1.3rem;
  color: #a97c5c;
  margin: 0 0 6px;
  text-align: center;
}
.contact-lead {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #8a7161;
  text-align: center;
  margin: 0 0 6px;
}
.form-textarea { resize: vertical; font-family: inherit; }

.request-cta { margin: 14px 0 0; }
.site-header .request-button { display: inline-block; width: auto; max-width: 100%; padding: 8px 18px; font-size: 0.85rem; border-radius: 999px; text-decoration: none; }

.site-footer {
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: #a98f7c;
}

.footer-links {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-links a {
  color: #a97c5c;
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-sep {
  color: #d9c3ac;
  margin: 0 4px;
}

/* モーダル */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(92, 74, 58, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  background: #fffdf9;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 28px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #a98f7c;
  cursor: pointer;
  line-height: 1;
}

.modal-image-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f6e6d3, #eed6c3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 16px;
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.soldout-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #c98a6b;
  color: #fff;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 999px;
}

.soldout-badge.hidden {
  display: none;
}

#modal-title {
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: #5c4a3a;
}

.modal-date {
  font-size: 0.8rem;
  color: #a98f7c;
  margin: 0 0 10px;
}

.modal-note {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6b5847;
  margin-bottom: 14px;
}

.modal-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #a97c5c;
  margin-bottom: 16px;
}

.modal-size {
  font-size: 0.8rem;
  color: #8a7161;
  margin: -10px 0 16px;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 0.8rem;
  color: #8a7161;
  margin-top: 10px;
}

.form-input {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e8d5bf;
  background: #fffdf9;
  color: #5c4a3a;
}

.form-input:focus {
  outline: 2px solid #d9b18e;
  outline-offset: 1px;
}

.apply-button {
  display: block;
  width: 100%;
  text-align: center;
  background: #c98a6b;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.apply-button:hover {
  background: #b57657;
}

.form-status {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #a97c5c;
}

.form-status.hidden {
  display: none;
}

.base-buy-button {
  background: #7a9e7e;
  margin-top: 0;
}

.base-buy-button:hover {
  background: #688c6c;
}

.or-divider {
  text-align: center;
  font-size: 0.8rem;
  color: #a98f7c;
  margin: 10px 0;
}

.sold-msg {
  text-align: center;
  padding: 12px;
  background: #f3e3d0;
  border-radius: 999px;
  color: #8a7161;
  font-size: 0.9rem;
}

.sold-msg.hidden {
  display: none;
}

@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(180deg, #2a221c 0%, #1f1913 100%);
    color: #ecdfd0;
  }
  .site-header h1 { color: #e0b48c; }
  .footer-links a { color: #e0b48c; }
  .subtitle { color: #cbb8a3; }
  .price-note { background: #34291f; border-color: #4a3b2c; color: #e0b48c; }
  .modal-size { color: #b8a28c; }
  .art-card { background: #34291f; border-color: #4a3b2c; }
  .art-card .card-date { color: #b8a28c; }
  .art-card .card-title { color: #ecdfd0; }
  .modal-box { background: #34291f; }
  .modal-note { color: #d8c9b8; }
  .sold-msg { background: #4a3b2c; color: #cbb8a3; }
  .month-nav-btn { background: #34291f; border-color: #4a3b2c; color: #e0b48c; }
  .current-month { color: #ecdfd0; }
  .empty-msg { color: #b8a28c; }
  .form-label { color: #cbb8a3; }
  .contact-section { background: #34291f; border-color: #4a3b2c; }
  .contact-title { color: #e0b48c; }
  .contact-lead { color: #cbb8a3; }
  .form-input { background: #2a221c; border-color: #4a3b2c; color: #ecdfd0; }
}
