
.free-project-card {
  display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto;
  min-height: 48px; box-sizing: border-box; max-width: 100%;
  padding: 5px 11px 5px 6px; border: 1px solid #e2cde9; border-radius: 11px;
  background: #fff; color: #30183e; text-decoration: none;
  font: 650 .87rem/1.24 system-ui,sans-serif;
  transition: background-color .16s ease,border-color .16s ease;
}
.free-project-card:hover { background: #fbf6ff; border-color: #b784cd; color: #361441; }
.free-project-card strong,.free-project-card small { display:block; }
.free-project-card small { color:#625269; margin-top:2px; font-weight:500; font-size:.71rem; }
.free-project-card .free-project-arrow { color:#7a199d; font-size:1.25rem; margin-inline-start:auto; }
.free-project-photos { display:flex; gap:5px; flex:none; }
.free-project-photos img { display:block; object-fit:cover; border-radius:6px; }
.free-project-card .free-project-photos img { width:42px; height:36px; }
.free-project-standalone { padding: 8px 16px; text-align:center; background:#fff; }
.free-project-legal { display:flex; gap:8px 16px; flex-wrap:wrap; line-height:1.35; }
.free-project-legal a,.free-project-policy a { text-underline-offset:3px; }
.free-project-dialog {
  position:fixed; inset:0; box-sizing:border-box; margin:auto; width:min(600px,calc(100% - 24px));
  max-height:calc(100dvh - 28px); padding:clamp(18px,4vw,37px);
  overflow:auto; color:#2f163d; border:1px solid #e3d5e9; border-radius:20px;
  background:radial-gradient(ellipse at 100% 100%,#f1e5fb 0%,transparent 54%),#fff;
  box-shadow:0 18px 70px #22103440;
  font:500 1rem/1.45 system-ui,sans-serif; color-scheme:light;
}
.free-project-dialog::backdrop { background:#20132a84; }
.free-project-dialog h2 { color:#31153e; font:780 clamp(1.45rem,4.2vw,2.19rem)/1.12 system-ui,sans-serif; letter-spacing:-.037em; padding-right:40px; margin:0 0 7px; }
.free-project-dialog>p { margin:0 0 15px; color:#564263; }
.free-project-close {
  position:absolute; right:10px; top:10px; box-sizing:border-box; min-width:44px; min-height:44px;
  padding:0; border:0; border-radius:10px; background:transparent; color:#381945; font-size:1.7rem; cursor:pointer;
}
.free-project-close:hover { background:#f4e9f8; }
.free-project-dialog .free-project-photos { margin:0 0 14px; gap:8px; }
.free-project-dialog .free-project-photos img { width:calc((100% - 8px) / 2); height:clamp(63px,15vw,145px); border-radius:11px; }
.free-project-form { display:grid; gap:8px; }
.free-project-form[hidden] { display:none; }
.free-project-form>label { font-weight:740; }
.free-project-form input[type=tel] {
  width:100%; min-height:47px; margin:0; padding:9px 12px; box-sizing:border-box; font:inherit;
  color:#30183e; background:#fff; border:1px solid #bd98d0; border-radius:9px;
}
.free-project-form input[type=tel]::placeholder { color:#725b80; }
.free-project-consent { display:flex; align-items:flex-start; gap:9px; padding-top:4px; font-size:.875rem; }
.free-project-consent input { flex:none; width:18px; height:18px; margin:3px 0 0; accent-color:#7922a5; }
.free-project-consent label { margin:0; font:inherit; cursor:pointer; }
.free-project-consent a,.free-project-policy a { color:#661887; }
.free-project-consent a { display:block; width:fit-content; }
.free-project-dialog .free-project-policy { font-size:.85rem; margin:0 0 4px 27px; }
.free-project-form button[type=submit] {
  min-height:48px; width:100%; border:1px solid #71169f; border-radius:10px;
  background:#7515a4; color:#fff; font:740 1.02rem/1.2 system-ui,sans-serif; cursor:pointer;
}
.free-project-form button[type=submit]:hover { background:#63128a; }
.free-project-form button:disabled { opacity:.7; cursor:wait; }
.free-project-dialog .free-project-status { margin:14px 0 0; }
.free-project-status:empty { display:none; }
.free-project-dialog .free-project-guide-note { font-size:.87rem; margin:0 0 12px; }
.free-project-guide-note strong { display:block; }
.free-project-dialog .free-project-presentation {
  box-sizing:border-box; display:inline-flex; align-items:center; flex-wrap:wrap; gap:2px 9px;
  min-height:44px; padding:7px 12px; margin-top:5px; border:1px solid #bd98d0; border-radius:8px;
  color:#661887; background:#fff; text-decoration:none; font-weight:740;
}
.free-project-dialog .free-project-presentation:hover { background:#f4e9f8; border-color:#7922a5; }
.free-project-presentation span { font-weight:500; }
.free-project-guide-download { color:#661887; text-underline-offset:3px; }
.free-project-guide-download:not([hidden]) { display:inline-block; margin-top:12px; font-weight:740; }
.free-project-dialog :is(a,input,button):focus-visible { outline:2px solid #75259e; outline-offset:3px; }
.free-project-document { max-width:780px; margin:24px auto 52px; }
.free-project-document h2 { margin-top:1.2em; }
@media(max-width:1020px) {
  .atelier-header .atelier-header-inner:has(.free-project-card) { flex-wrap:wrap; row-gap:0; }
  .atelier-header .free-project-card {
    order:5; margin:0 0 8px; width:100%; min-height:44px; padding-block:3px;
    justify-content:flex-start;
  }
  html:has(.atelier-header .free-project-card) { scroll-padding-top:125px; }
}
@media(max-width:680px) {
  .atelier-header .free-project-card .free-project-photos img { width:38px; height:32px; }
  .free-project-dialog { max-height:calc(100dvh - 20px); }
}
@media(prefers-reduced-motion:reduce) { .free-project-card { transition:none; } }
