:root {
  --bg: #fbf8f3;
  --card: #ffffff;
  --ink: #222222;
  --muted: #706b64;
  --accent: #1f8f8a;
  --accent-dark: #11615e;
  --line: #e9ded2;
  --shadow: 0 20px 60px rgba(40, 30, 20, .10);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(251, 248, 243, .82);
  border-bottom: 1px solid var(--line);
  padding: 16px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 800;
  letter-spacing: .05em;
  font-size: 20px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

nav a { color: var(--muted); }
nav a:hover { color: var(--accent-dark); }

.hero {
  min-height: 58vh;
  padding: clamp(48px, 9vw, 110px) clamp(18px, 6vw, 80px);
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(31,143,138,.18), transparent 32%),
    linear-gradient(135deg, #fffdf8, #e9f7f6);
}

.hero h1 {
  font-size: clamp(36px, 7vw, 74px);
  line-height: 1.08;
  margin: 10px auto 20px;
  max-width: 900px;
}

.hero p {
  max-width: 760px;
  margin-inline: auto;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(31,143,138,.25);
}

.button:hover { background: var(--accent-dark); }

.section, .admin-page, .detail-wrap, .form-page, .thanks {
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 72px);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title h1, .section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(40, 30, 20, .16);
}

.product-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.product-card-body {
  padding: 18px;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.price {
  font-size: 22px;
  color: var(--accent-dark);
  font-weight: 800;
  margin: 0;
}

.detail-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  align-items: start;
}

.detail-image img {
  border-radius: 34px;
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.detail-info {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.detail-info h1 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.15;
  margin: 8px 0 18px;
}

.description, .note {
  color: var(--muted);
}

.price-box {
  margin: 24px 0;
  padding: 18px;
  border-radius: 20px;
  background: #f4fbfa;
}

.price-box p { margin: 6px 0; }
.price-box strong { font-size: 24px; color: var(--accent-dark); }

.form-page, .thanks {
  display: grid;
  place-items: center;
}

.form-card, .table-card {
  width: min(720px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.form-card.wide { width: min(980px, 100%); }

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  background: #fffdf8;
}

textarea { min-height: 110px; resize: vertical; }

.checkout-summary {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  margin-bottom: 22px;
}

.checkout-summary img {
  height: 120px;
  width: 160px;
  object-fit: cover;
  border-radius: 18px;
}

.radio-box, .registered-address, .address-form {
  padding: 16px;
  border-radius: 20px;
  background: #f8f1ea;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.table-card {
  width: 100%;
  margin-top: 22px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.metrics div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.metrics span {
  color: var(--muted);
  font-size: 13px;
}

.metrics strong {
  display: block;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--accent-dark);
}

.flash-wrap {
  padding: 14px clamp(18px, 5vw, 72px) 0;
}

.flash {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.thanks {
  text-align: center;
  min-height: 60vh;
}

.site-footer {
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .product-grid,
  .detail-wrap,
  .admin-grid,
  .metrics {
    grid-template-columns: 1fr;
  }
  .product-card img {
    height: 230px;
  }
}

@media (max-width: 560px) {
  nav {
    gap: 10px;
    font-size: 13px;
  }
  .checkout-summary {
    grid-template-columns: 1fr;
  }
  .checkout-summary img {
    width: 100%;
    height: 190px;
  }
}


.login-page {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 20% 10%, rgba(31,143,138,.18), transparent 30%),
    radial-gradient(circle at 80% 90%, rgba(255,195,113,.22), transparent 34%);
}

.login-card {
  width: min(520px, 100%);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: clamp(24px, 5vw, 42px);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 5vw, 48px);
}

.login-copy {
  color: var(--muted);
  margin-bottom: 24px;
}

.login-hint {
  margin-top: 22px;
  padding: 16px;
  border-radius: 20px;
  background: #f4fbfa;
  color: var(--muted);
  font-size: 14px;
}

.login-hint p {
  margin: 4px 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.dashboard-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(40, 30, 20, .16);
}

.dashboard-card span {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
}

.dashboard-card h2 {
  margin: 10px 0;
  font-size: clamp(24px, 4vw, 36px);
}

.dashboard-card p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}


.ghost-button {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.ghost-button:hover {
  background: #f4fbfa;
  color: var(--accent-dark);
}

.thanks-card {
  width: min(520px, 100%);
  margin: 20px auto;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: left;
}

.thanks-card p {
  margin: 8px 0;
}

.shipping-preview {
  margin: -6px 0 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f4fbfa;
  color: var(--muted);
  font-size: 14px;
}

.small-input { max-width: 140px; padding: 9px 10px; border-radius: 12px; }


.action-cell {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-cell form {
  display: inline;
}

.mini-button {
  display: inline-flex;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.mini-button:hover {
  background: #f4fbfa;
}

.mini-button.danger {
  border-color: #c84b4b;
  color: #a83232;
}

.mini-button.danger:hover {
  background: #fff3f3;
}

.muted-row {
  opacity: .55;
}


.stock-badge {
  display: inline-block;
  margin: 8px 0 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eefaf5;
  color: #11615e;
  font-size: 13px;
  font-weight: 700;
}

.stock-badge.wait {
  background: #fff7e8;
  color: #9a6200;
}

.stock-badge.soldout {
  background: #fff0f0;
  color: #a83232;
}

.bundle-info {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: #f5fbfa;
  font-size: 14px;
}


.sort-input {
  width: 80px;
  padding: 8px 10px;
  border-radius: 12px;
}

.inline-form {
  display: inline;
}


.checkout-first,
.delivery-section {
  display: grid;
  gap: 18px;
}

.checkout-first {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffdf8;
}

.checkout-controls {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
}

.total-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.total-box > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.total-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.total-box strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(22px, 4vw, 32px);
  color: var(--accent-dark);
}

.total-box small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.total-box .grand {
  background: #f4fbfa;
  border-color: rgba(31,143,138,.25);
}

@media (max-width: 760px) {
  .checkout-controls,
  .total-box {
    grid-template-columns: 1fr;
  }
}

.admin-preview-image {
  max-width: 240px;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}


/* Image fit fixes */
.product-card img,
.detail-image img,
.checkout-summary img {
  object-fit: contain !important;
  background: #f7f3ee;
}

.product-card img {
  padding: 8px;
}

.detail-image img {
  padding: 12px;
}

.checkout-summary img {
  padding: 6px;
}


.slider {
  position: relative;
  width: 100%;
  background: #f7f3ee;
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  padding: 12px;
  background: #f7f3ee;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: var(--accent-dark);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.slider-btn.prev {
  left: 14px;
}

.slider-btn.next {
  right: 14px;
}

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
}

.extra-image-list {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #f8f1ea;
}

.extra-image-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.extra-image-item img {
  width: 90px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
}


.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-links a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 72px);
}

.legal-card {
  width: min(980px, 100%);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin: 8px 0 22px;
  font-size: clamp(30px, 5vw, 52px);
}

.legal-card h2 {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 22px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul {
  padding-left: 1.4em;
}

.legal-date {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

.legal-table th {
  width: 230px;
  color: var(--ink);
  background: #f8f1ea;
  vertical-align: top;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 14px 16px;
}

.legal-notice-box {
  margin: 18px 0;
  padding: 16px;
  border-radius: 20px;
  background: #fff8e8;
  border: 1px solid #f0dfb8;
  color: var(--muted);
  font-size: 14px;
}

.legal-notice-box p {
  margin: 6px 0;
}

.legal-notice-box a,
.agree-box a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agree-box {
  display: flex;
  grid-template-columns: auto 1fr;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf8;
  font-weight: 500;
}

.agree-box input {
  width: auto;
  margin-top: 6px;
}

@media (max-width: 700px) {
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    border-bottom: none;
  }
}

.table-scroll { overflow-x: auto; }
.button.small { padding: 8px 14px; font-size: 13px; display: inline-flex; }


.guide-section {
  padding-top: clamp(28px, 5vw, 56px);
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.guide-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 170px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(31, 143, 138, .18);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(31, 143, 138, .16), transparent 34%),
    linear-gradient(135deg, #ffffff, #fff9ef);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(31,143,138,.08));
  opacity: 0;
  transition: opacity .22s ease;
}

.guide-card:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 143, 138, .38);
  box-shadow: 0 28px 75px rgba(40, 30, 20, .16);
}

.guide-card:hover::before {
  opacity: 1;
}

.guide-card-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  background: #eefaf8;
  font-size: 30px;
  box-shadow: inset 0 0 0 1px rgba(31, 143, 138, .12);
}

.guide-card-label {
  margin: 0 0 4px;
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.guide-card h3 {
  margin: 0 0 8px;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.25;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
}

.guide-card-arrow {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(31, 143, 138, .24);
}

.info-page {
  max-width: 960px;
  margin: 0 auto;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.info-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.info-list li {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8f1ea;
}

@media (max-width: 780px) {
  .guide-card-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    grid-template-columns: auto 1fr;
  }

  .guide-card-arrow {
    grid-column: 1 / -1;
    justify-self: end;
  }
}
