:root {
  --bg: #fffaf2;
  --panel: #ffffff;
  --ink: #223047;
  --muted: #64748b;
  --primary: #fd7979;
  --primary-dark: #d85555;
  --yellow: #ffd66b;
  --green: #97d8b2;
  --blue: #9ed8ff;
  --line: #eee3d3;
  --shadow: 0 22px 55px rgba(35, 48, 71, .11);
  --radius: 24px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(253,121,121,.18), transparent 28rem),
    radial-gradient(circle at top right, rgba(158,216,255,.20), transparent 24rem),
    var(--bg);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px min(6vw, 72px);
  background: rgba(255,250,242,.88);
  border-bottom: 1px solid rgba(238,227,211,.72);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--yellow));
  color: #fff; font-weight: 900; box-shadow: var(--shadow);
}
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav a { padding: 10px 14px; border-radius: 999px; color: #334155; font-weight: 700; }
.nav a:hover { background: #fff; box-shadow: 0 10px 24px rgba(35,48,71,.08); }
.nav-cta { background: var(--ink) !important; color: #fff !important; }
.nav-toggle { display: none; border: 0; background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 20px; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 70px 0 46px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: #475569; font-weight: 800; font-size: 13px;
}
h1 { font-size: clamp(38px, 6vw, 74px); line-height: .96; margin: 18px 0; letter-spacing: -2.5px; }
.lead { font-size: clamp(17px, 2vw, 21px); line-height: 1.65; color: var(--muted); max-width: 720px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 18px; border-radius: 15px;
  border: 1px solid transparent; font-weight: 900; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 16px 30px rgba(253,121,121,.28); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-full { width: 100%; }
.hero-card {
  background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 34px; padding: 24px;
  box-shadow: var(--shadow); transform: rotate(1deg);
}
.preview-stack { display: grid; gap: 14px; }
.preview-item { display: flex; gap: 14px; align-items: center; background: #fff; padding: 14px; border-radius: 22px; border: 1px solid var(--line); }
.preview-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; background: var(--blue); }
.preview-item:nth-child(2) .preview-icon { background: var(--yellow); }
.preview-item:nth-child(3) .preview-icon { background: var(--green); }
.section { padding: 42px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1; margin: 0; letter-spacing: -1.4px; }
.section-head p { margin: 8px 0 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 14px 34px rgba(35,48,71,.07); }
.product-card { display: flex; flex-direction: column; min-height: 100%; }
.cover {
  aspect-ratio: 16/10; border-radius: 20px; background:
    linear-gradient(135deg, rgba(253,121,121,.18), rgba(255,214,107,.32)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 12px, rgba(255,255,255,.2) 12px 24px);
  display: grid; place-items: center; color: #475569; font-weight: 900; text-align: center; overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.tag { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; font-weight: 800; }
.product-card h3 { margin: 6px 0 8px; font-size: 20px; line-height: 1.2; }
.product-card p { color: var(--muted); line-height: 1.55; margin: 0 0 14px; }
.price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: 20px; font-weight: 950; color: var(--primary-dark); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { padding: 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.step strong { display: grid; place-items: center; width: 38px; height: 38px; background: var(--ink); color: #fff; border-radius: 14px; margin-bottom: 12px; }
.form-shell { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; padding: 42px 0 70px; }
.info-panel, .form-panel { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); }
.info-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: #475569; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 850; color: #334155; }
input, select, textarea {
  width: 100%; border: 1px solid #dbe3ed; border-radius: 15px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: #fbfdff;
}
textarea { min-height: 120px; resize: vertical; }
.help { color: var(--muted); font-size: 13px; }
.alert { padding: 14px 16px; border-radius: 18px; margin-bottom: 16px; font-weight: 800; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #bbf7d0; }
.alert-error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 14px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) auto; gap: 10px; margin-bottom: 20px; }
.detail-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; padding: 50px 0; }
.detail-box { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 24px; box-shadow: var(--shadow); }
.admin-page { min-height: 100vh; background: #f8fafc; }
.admin-wrap { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.table-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 22px; overflow: auto; box-shadow: 0 12px 32px rgba(15,23,42,.06); }
table { width: 100%; border-collapse: collapse; min-width: 920px; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid #edf2f7; vertical-align: top; }
th { background: #f8fafc; font-size: 13px; color: #475569; }
.status { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.status.pending { background: #fffbeb; color: #b45309; }
.status.approved { background: #ecfdf5; color: #047857; }
.status.rejected { background: #fff1f2; color: #be123c; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-actions form { display: inline; }
.site-footer { margin-top: 40px; padding: 34px min(6vw, 72px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #475569; }
.site-footer p { margin: 6px 0 0; max-width: 520px; }
.footer-links { display: flex; gap: 10px; }
.footer-links a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-weight: 800; }
@media (max-width: 860px) {
  .hero-grid, .form-shell, .detail-layout { grid-template-columns: 1fr; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 16px; right: 16px; top: 78px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .grid, .steps, .form-grid { grid-template-columns: 1fr; }
  h1 { letter-spacing: -1.4px; }
  .site-header { padding: 12px 16px; }
}

.form-error-summary[hidden] { display: none; }
.field.has-error label { color: #be123c; }
input.is-invalid, select.is-invalid, textarea.is-invalid {
  border-color: #fb7185;
  background: #fff7f7;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, .12);
}
.field-error {
  color: #be123c;
  font-size: 13px;
  font-weight: 800;
}
.check-field label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
  padding: 12px 14px;
  border: 1px solid #dbe3ed;
  border-radius: 15px;
  background: #fbfdff;
}
.check-field input {
  width: auto;
  margin-top: 4px;
}
.check-field.has-error label {
  border-color: #fb7185;
  background: #fff7f7;
}


.featured-material-grid { grid-template-columns: 1fr; }
.japanese-feature-card { padding: 0; overflow: hidden; }
.japanese-card-link { display: grid; grid-template-columns: .95fr 1.05fr; gap: 0; color: inherit; text-decoration: none; min-height: 360px; }
.japanese-cover { min-height: 360px; height: 100%; border-radius: 0; aspect-ratio: auto; font-size: 48px; background: linear-gradient(135deg, #fff1f2, #e0f2fe 50%, #fef3c7); }
.japanese-cover span { display: block; font-size: 54px; line-height: 1; margin-bottom: 14px; }
.japanese-cover strong { display: block; font-size: 42px; letter-spacing: -1.2px; color: #0f172a; }
.japanese-card-body { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.japanese-card-body h3 { font-size: 42px; letter-spacing: -1.3px; margin: 10px 0 12px; }
.japanese-card-body p { font-size: 18px; max-width: 760px; }
.japanese-card-body .btn { align-self: flex-start; margin-top: 14px; }

@media (max-width: 860px) {
  .japanese-card-link { grid-template-columns: 1fr; }
  .japanese-cover { min-height: 260px; }
  .japanese-card-body h3 { font-size: 32px; }
}
