:root {
  --ink: #13223c;
  --muted: #5d6b82;
  --blue: #1167d8;
  --blue-2: #eaf4ff;
  --mint: #e9f8ef;
  --yellow: #fff5c7;
  --red: #ffeceb;
  --beige: #fff7e9;
  --line: #dbe6f5;
  --shadow: 0 18px 45px rgba(31, 75, 133, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 214, 89, .18), transparent 24rem),
    linear-gradient(180deg, #fafdff 0%, #fff 42%, #fffaf1 100%);
}
a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #f6c444; outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 900; color: var(--blue); text-decoration: none; font-size: clamp(18px, 2vw, 24px); white-space: nowrap; }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(17,103,216,.25); }
.nav { display: flex; gap: clamp(14px, 3vw, 40px); align-items: center; font-weight: 700; }
.nav a { text-decoration: none; color: #22365a; }
.header-cta, .primary-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(17,103,216,.25);
  text-decoration: none;
  cursor: pointer;
}
.secondary-button {
  border: 1px solid #b9cdec;
  border-radius: 12px;
  padding: 11px 18px;
  background: #fff;
  color: #174075;
  font-weight: 800;
  cursor: pointer;
}

main { overflow: hidden; }
.section, .hero, .tool-section, .content-page, .article-page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 38px;
  align-items: center;
  padding: clamp(42px, 7vw, 84px) 0 34px;
  min-width: 0;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #9b6a00; font-weight: 900; letter-spacing: .02em; }
h1, h2, h3 { line-height: 1.18; letter-spacing: 0; }
h1 { font-size: clamp(34px, 4.8vw, 58px); margin: 16px 0; overflow-wrap: anywhere; }
h2 { font-size: clamp(26px, 3.4vw, 42px); margin: 0 0 18px; }
h3 { font-size: 20px; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 680px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-art {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 34px;
  background: linear-gradient(140deg, #fff 0%, #eef7ff 52%, #fff4d6 100%);
  border: 1px solid #cfe0f6;
  box-shadow: var(--shadow);
  padding: 30px;
}
.shop-illustration {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 260px;
  height: 230px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid #d8e4f4;
  box-shadow: 0 20px 40px rgba(31,75,133,.12);
}
.shop-illustration::before { content: ""; position: absolute; inset: 0 0 auto; height: 72px; border-radius: 26px 26px 0 0; background: repeating-linear-gradient(90deg, #f9bf4f 0 28px, #fff4d6 28px 56px); }
.shop-illustration::after { content: "WELCOME"; position: absolute; left: 58px; bottom: 42px; padding: 10px 16px; border-radius: 10px; background: #18523f; color: #fff; font-weight: 900; transform: rotate(-4deg); }
.floating-card { position: absolute; left: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; box-shadow: 0 12px 24px rgba(31,75,133,.12); font-weight: 900; }
.floating-card.one { top: 38px; color: var(--blue); }
.floating-card.two { top: 126px; color: #0f8d5d; }
.floating-card.three { top: 216px; color: #d94635; }
.plane { position: absolute; top: 40px; right: 90px; font-size: 42px; transform: rotate(-15deg); }

.feature-row, .category-cards, .examples-grid, .faq-list, .article-grid { display: grid; gap: 18px; }
.feature-row { grid-template-columns: repeat(4, 1fr); margin: 22px 0 34px; }
.feature-card, .soft-card, .example-card, .faq-item, .article-card {
  min-width: 0;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(31,75,133,.08);
}
.feature-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--blue-2); color: var(--blue); font-size: 30px; margin-bottom: 12px; }
.section { padding: clamp(38px, 6vw, 72px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head p { color: var(--muted); margin: 0; max-width: 650px; }

.tool-section { padding: 30px 0 clamp(46px, 7vw, 76px); }
.maker-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid #c9dcf6;
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}
.control-panel, .preview-panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 28px); }
.step-label { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-weight: 900; color: #12356b; }
.step-label span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; }
.field-group { padding: 16px 0; border-top: 1px solid #ecf1f8; }
.field-group:first-of-type { border-top: 0; padding-top: 0; }
.choice-grid { display: grid; gap: 10px; }
.store-grid { grid-template-columns: repeat(4, 1fr); }
.category-grid { grid-template-columns: repeat(3, 1fr); }
.choice-card, .category-chip, .language-chip {
  min-height: 48px;
  border: 1px solid #cad8eb;
  border-radius: 14px;
  background: #fff;
  color: #233a5d;
  font-weight: 800;
  cursor: pointer;
}
.choice-card { display: grid; place-items: center; gap: 4px; padding: 14px 8px; }
.choice-card span { font-size: 25px; }
.category-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; }
.is-active { border-color: var(--blue); background: var(--blue-2); box-shadow: inset 0 0 0 1px var(--blue); }
.language-row { display: flex; gap: 10px; flex-wrap: wrap; }
.language-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; }
.helper-note, .copy-status { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preview-head small { color: var(--muted); font-weight: 800; }
.print-card {
  width: min(100%, 560px);
  margin: 10px auto 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(31,75,133,.08);
}
.print-card.is-a4 { aspect-ratio: 1 / 1.414; display: grid; }
.print-border {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  height: 100%;
  border: 5px double currentColor;
  border-radius: 14px;
  padding: clamp(22px, 4vw, 42px);
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.78));
}
.print-card.green { color: #228246; background: #f5fff6; }
.print-card.red { color: #d64132; background: #fff7f6; }
.print-card.blue { color: #1167d8; background: #f5fbff; }
.print-card.yellow { color: #af7a00; background: #fffbed; }
.print-card.mint { color: #16836b; background: #f3fffb; }
.print-card.beige { color: #9a6a2f; background: #fffaf1; }
.print-icon { font-size: clamp(48px, 8vw, 84px); line-height: 1; margin-bottom: 18px; }
.print-card h2 { color: #101828; font-size: clamp(28px, 4.3vw, 50px); margin-bottom: 22px; }
.print-lines { display: grid; gap: 12px; text-align: left; }
.print-lines p { margin: 0; font-size: clamp(17px, 2.2vw, 24px); font-weight: 900; color: #1a2437; display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; }
.print-lines span { display: inline-grid; place-items: center; border-radius: 8px; background: currentColor; color: #fff; font-size: 13px; padding: 4px 8px; }
.print-note { color: #5f6b7a; font-size: 13px; margin: 20px 0 0; text-align: left; }
.action-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.category-cards { grid-template-columns: repeat(4, 1fr); }
.examples-grid { grid-template-columns: repeat(3, 1fr); }
.faq-list { grid-template-columns: repeat(2, 1fr); }
.article-grid { grid-template-columns: repeat(3, 1fr); }
.soft-card.mint { background: var(--mint); }
.soft-card.yellow { background: var(--yellow); }
.soft-card.red { background: var(--red); }
.soft-card.beige { background: var(--beige); }
.example-card b { display: block; font-size: 20px; margin-bottom: 8px; }
.example-card p, .article-card p, .faq-item p, .soft-card p { color: var(--muted); margin: 0; }
.text-link { color: var(--blue); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.notice {
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff7e9;
  border: 1px solid #f5d7a4;
  color: #604719;
}
.content-page, .article-page { padding: clamp(36px, 6vw, 72px) 0; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.prose { background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 38px); box-shadow: 0 12px 30px rgba(31,75,133,.08); }
.prose p, .prose li { color: #46556d; }
.prose h2 { margin-top: 34px; }
.side-box { position: sticky; top: 92px; background: var(--blue-2); border: 1px solid #c9dcf6; border-radius: 22px; padding: 22px; }
.site-footer { margin-top: 48px; padding: 34px clamp(18px, 4vw, 48px); background: #10233f; color: #dfeaff; }
.footer-inner { width: min(1180px, 100%); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner a { color: #fff; margin-right: 16px; }

@media (max-width: 880px) {
  .nav a:not(.header-cta) { display: none; }
  .hero, .maker-shell, .page-layout { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; }
  .feature-row, .category-cards, .examples-grid, .faq-list, .article-grid { grid-template-columns: 1fr 1fr; }
  .store-grid, .category-grid { grid-template-columns: 1fr 1fr; }
  .side-box { position: static; }
}
@media (max-width: 560px) {
  .site-header { padding: 12px 16px; }
  .nav { display: none; }
  .logo { font-size: 17px; }
  h1 { font-size: 28px; line-height: 1.34; word-break: break-all; }
  .lead, .feature-card p, .soft-card p, .example-card p { word-break: break-all; overflow-wrap: anywhere; }
  .hero > * { min-width: 0; }
  .hero { padding-top: 30px; }
  .hero-art { min-height: 250px; padding: 18px; }
  .shop-illustration { width: 160px; height: 160px; right: 14px; bottom: 26px; }
  .shop-illustration::after { left: 36px; bottom: 34px; font-size: 12px; }
  .floating-card { left: 14px; padding: 10px 12px; font-size: 13px; }
  .feature-row, .category-cards, .examples-grid, .faq-list, .article-grid, .store-grid, .category-grid, .action-row { grid-template-columns: 1fr; }
  .maker-shell { padding: 10px; border-radius: 22px; }
  .control-panel, .preview-panel { padding: 16px; border-radius: 18px; }
  .print-lines p { grid-template-columns: 1fr; gap: 5px; text-align: center; }
  .print-lines span { width: max-content; margin: 0 auto; }
}

@media print {
  @page { size: A4 portrait; margin: 12mm; }
  body { background: #fff; }
  .site-header, .no-print, .control-panel, .preview-head, .section, .hero, .site-footer, .content-page > *:not(.print-card), .tool-section > h1, .tool-section > p { display: none !important; }
  .maker-shell, .preview-panel { display: block; border: 0; box-shadow: none; padding: 0; background: #fff; }
  .tool-section { width: 100%; padding: 0; }
  .print-card { display: grid !important; width: 100%; max-width: none; height: 260mm; aspect-ratio: auto; border: 0; box-shadow: none; margin: 0; break-inside: avoid; }
  .print-border { min-height: 0; }
}
