:root { color-scheme: light; font-family: "Yu Gothic UI", "Meiryo", sans-serif; color: #4b3a3b; background: #fffaf4; --pale-orange: #fad18f; --middle-orange: #f2b782; --accent-orange: #ff9d6d; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: linear-gradient(#fff9f0, #f7f1eb); }
button, input, select { font: inherit; }
button, select, input[type="number"] { min-height: 42px; }
a { color: #8a4d58; }
.page-width { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.hero { padding: 42px 0 24px; }
.hero h1 { margin: 4px 0 8px; font-size: clamp(2rem, 6vw, 3.4rem); }
.title-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.release-badge { padding: 5px 10px; color: #875351; font-size: .78rem; font-weight: 800; background: rgba(250,209,143,.45); border: 1px solid var(--middle-orange); border-radius: 999px; }
.hero p:last-child { margin-bottom: 0; }
.eyebrow { margin: 0; color: #875351; font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 22px; align-items: start; }
.controls-column { display: grid; gap: 18px; }
.card { padding: 22px; border: 1px solid #eadbd2; border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(104,70,62,.08); }
.preview-card { position: sticky; top: 16px; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
h2 { margin: 4px 0 18px; font-size: 1.35rem; }
.badge { padding: 6px 10px; border-radius: 999px; background: rgba(250,209,143,.45); color: #875351; font-size: .8rem; }
.preview-stage { display: grid; min-height: 380px; place-items: center; overflow: hidden; border-radius: 14px; background: #eef0f2; }
#preview-canvas { display: block; max-width: 100%; max-height: 560px; }
.privacy-callout { padding: 13px; border-radius: 12px; background: #f1f8f3; color: #31533b; }
.drop-zone { display: grid; gap: 8px; padding: 28px 16px; border: 2px dashed var(--middle-orange); border-radius: 14px; place-items: center; cursor: pointer; text-align: center; }
.drop-zone:hover, .drop-zone.is-dragging { background: #fff5eb; border-color: var(--accent-orange); }
.drop-zone.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.note { color: #716663; font-size: .88rem; }
.message { min-height: 1.4em; color: #625956; }
.message.is-error { color: #a62929; font-weight: 700; }
.message.is-success { color: #26713b; font-weight: 700; }
.image-list { display: grid; gap: 8px; }
.image-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px; border-radius: 10px; background: #f7f3f0; overflow-wrap: anywhere; }
.image-actions { display: flex; gap: 4px; flex: none; }
.image-actions button { min-height: 34px; padding: 4px 8px; }
.text-button { border: 0; background: transparent; color: #8a4d58; text-decoration: underline; cursor: pointer; }
.field-label, legend, .slider-field > label { display: block; margin: 16px 0 7px; font-weight: 700; }
.check-field { display: flex; gap: 7px; align-items: center; margin-top: 12px; }
select { width: 100%; padding: 8px 10px; border: 1px solid #cabbb5; border-radius: 9px; background: white; }
.slider-field { margin-top: 18px; }
.slider-row { display: grid; grid-template-columns: 1fr 74px 20px; gap: 8px; align-items: center; }
input[type="range"] { width: 100%; }
.number-input { width: 74px; padding: 6px; border: 1px solid #cabbb5; border-radius: 8px; }
fieldset { margin: 16px 0; padding: 14px; border: 1px solid #ddcec7; border-radius: 12px; }
fieldset legend { margin: 0; padding-inline: 6px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.choice-row label, .consent-box label { display: flex; gap: 7px; align-items: start; }
.is-unsupported { color: #938b88; text-decoration: line-through; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-columns label { font-weight: 700; }
.two-columns select { margin-top: 7px; font-weight: 400; }
.consent-box { display: grid; gap: 12px; }
.action-row { display: flex; gap: 10px; }
button { padding: 8px 13px; border: 1px solid #bda9a2; border-radius: 9px; background: white; cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary-button, .download-button { padding: 11px 18px; border-color: #e8895d; background: var(--accent-orange); color: white; font-weight: 800; text-decoration: none; }
progress { width: 100%; margin-top: 14px; }
.download-button { display: block; margin-top: 12px; border-radius: 9px; text-align: center; }
.browser-note { margin-top: 20px; color: #716663; font-size: .86rem; text-align: center; }
.about-tool { padding: 22px; margin-top: 22px; border: 1px solid #eadbd2; border-radius: 18px; background: rgba(255,255,255,.78); }
.about-tool h2 { margin-bottom: 10px; }
.about-tool p:not(.eyebrow) { margin: 8px 0; }
.legal-page main { padding-top: 32px; padding-bottom: 42px; }
.legal-page h1 { margin-top: 4px; }
.legal-page h2 { padding-bottom: 5px; margin-top: 1.8em; border-bottom: 1px solid #eadbd2; }
footer { padding: 30px 0 50px; color: #716663; font-size: .9rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 820px) { .tool-layout { grid-template-columns: 1fr; } .preview-card { position: static; } .preview-stage { min-height: 280px; } }
@media (max-width: 480px) { .page-width { width: min(100% - 20px, 1120px); } .card { padding: 16px; } .two-columns { grid-template-columns: 1fr; } .image-row { align-items: stretch; flex-direction: column; } .image-actions { justify-content: flex-end; } .slider-row { grid-template-columns: 1fr 66px 18px; } }

/* Cloudflare版ツール共通: メインページと同じサイトヘッダー。 */
.tool-site-header { position: sticky; top: 0; z-index: 50; color: #5c4444; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(150,100,100,.18); backdrop-filter: blur(12px); }
.tool-site-header .site-header__inner { display: flex; align-items: center; justify-content: space-between; width: min(100%, 1200px); height: 80px; padding: 0 20px; margin: auto; }
.tool-site-header .site-brand { display: flex; gap: .75rem; align-items: center; color: inherit; text-decoration: none; }
.tool-site-header .site-brand__icon { flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; }
.tool-site-header .site-logo { display: flex; flex-direction: column; line-height: 1.1; }
.tool-site-header .site-logo__main { font-size: clamp(1.25rem, 3vw, 1.65rem); font-weight: 900; letter-spacing: .04em; }
.tool-site-header .site-logo__sub { margin-top: 4px; color: #8c7774; font-size: .68rem; font-weight: 800; letter-spacing: .15em; }
.tool-site-header .desktop-nav { display: flex; align-self: stretch; }
.tool-site-header .desktop-nav a { display: flex; align-items: center; justify-content: center; min-width: 112px; color: inherit; font-size: .88rem; font-weight: 700; text-decoration: none; transition: color .2s ease, background-color .2s ease; }
.tool-site-header .desktop-nav a:hover { color: #ad5839; background: rgba(255,157,109,.12); }
.tool-site-header .menu-button { display: none; width: 46px; height: 46px; padding: 11px; border: 0; border-radius: 50%; background: #ff9d6d; cursor: pointer; }
.tool-site-header .menu-button span { display: block; height: 2px; margin: 4px 0; background: #fff; }
.tool-site-header .mobile-nav { padding: 10px 20px 20px; background: #fff; }
.tool-site-header .mobile-nav a { display: block; padding: 12px; color: inherit; font-weight: 800; text-align: center; text-decoration: none; border-bottom: 1px solid rgba(150,100,100,.18); }
.related-tool-link-preview { display: flex; align-items: center; justify-content: center; width: 84px; height: 78px; overflow: hidden; background: transparent; }
.related-tool-link-preview img,.related-tool-link-preview video { display: block; width: 100%; height: 100%; background: transparent; border-radius: 0; box-shadow: none; object-fit: contain; }
.tokotoko-link-preview img { width: 54%; height: 100%; }
.tokotoko-link-preview img + img { margin-left: -8%; }
.has-site-header .preview-card { top: 98px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .tool-site-header .desktop-nav a { min-width: 80px; font-size: .78rem; }
}
@media (max-width: 767px) {
  .tool-site-header .desktop-nav { display: none; }
  .tool-site-header .menu-button { display: block; }
  .tool-site-header .site-header__inner { height: 70px; }
}


/* Cloudflare版とことこメーカー: ぷにぷに・きらきらと共通の下部構成。 */
.cloudflare-tokotoko-author-area { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; align-items: stretch; width: min(100% - 32px,1160px); margin: 22px auto 10px; }
.cloudflare-tokotoko-author-area > * { height: 100%; }
.cloudflare-tokotoko-author-area .author-card { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 15px; align-items: center; padding: 15px 20px; border: 1px solid #eadbd2; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 10px 30px rgba(104,70,62,.08); }
.cloudflare-tokotoko-author-area .author-icon { display: grid; width: 72px; place-items: center; }
.cloudflare-tokotoko-author-area .author-icon img { display: block; width: 72px; height: 72px; object-fit: contain; }
.cloudflare-tokotoko-author-area .author-name { margin: 0 0 3px; font-weight: 800; }
.cloudflare-tokotoko-author-area .author-role { margin: 0; color: #716663; font-size: .76rem; }
.cloudflare-tokotoko-author-area .author-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 7px; }
.cloudflare-tokotoko-author-area .tool-link-card,.cloudflare-tokotoko-author-area .jinrou-card { display: grid; grid-template-columns: max-content minmax(0,auto); gap: 12px; align-items: center; justify-content: center; padding: 11px 15px; color: #4b3a3b; text-align: center; text-decoration: none; border: 1px solid #eadbd2; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 10px 30px rgba(104,70,62,.08); transition: background .18s,transform .18s; }
.cloudflare-tokotoko-author-area .tool-link-card:hover,.cloudflare-tokotoko-author-area .jinrou-card:hover { background: #fff6ef; transform: translateY(-2px); }
.cloudflare-tokotoko-author-area .request-guide-link-card { grid-template-columns: minmax(0,auto) max-content; border-color: #f2b782; background: linear-gradient(135deg,rgba(255,255,255,.97),rgba(250,209,143,.34)); }
.cloudflare-tokotoko-author-area .request-guide-link-preview { width: 84px; overflow: visible; background: transparent; }
.cloudflare-tokotoko-author-area .request-guide-link-preview img { display: block; width: 84px; height: auto; }
.cloudflare-tokotoko-author-area .jinrou-card { grid-template-columns: max-content minmax(0,auto); }
.cloudflare-tokotoko-author-area .jinrou-note { color: #716663; font-size: .7rem; }
.cloudflare-tokotoko-author-area + .trial-note { max-width: 850px; padding: 15px 18px; margin-top: 22px; border-left: 4px solid #f2b782; border-radius: 0 12px 12px 0; background: rgba(255,255,255,.65); font-size: .9rem; }
.cloudflare-tokotoko-author-area + .trial-note p { margin: 0; }
.cloudflare-tokotoko-author-area + .trial-note p + p { margin-top: 7px; }
.footer-inner { display: grid; gap: 8px; font-size: .82rem; text-align: center; }
.footer-inner nav { justify-content: center; }
.footer-inner p { margin: 0; }
@media (max-width:900px) { .cloudflare-tokotoko-author-area { grid-template-columns: repeat(2,minmax(0,1fr)); width: min(100% - 32px,820px); } }
@media (max-width:560px) { .cloudflare-tokotoko-author-area { grid-template-columns: minmax(0,1fr); width: min(100% - 22px,1160px); } .cloudflare-tokotoko-author-area > * { width: 100%; } }
