:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #16181d;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-soft: #eff4ff;
  --ok: #15803d;
  --ok-soft: #ecfdf3;
  --warn: #b45309;
  --warn-soft: #fff7ed;
  --ng: #b91c1c;
  --ng-soft: #fef2f2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--accent); }
code { padding: 1px 5px; border-radius: 4px; background: #f1f2f4; font-size: .92em; }
h1 { margin: 0 0 16px; font-size: 22px; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- 上の帯 ---------- */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.badge {
  padding: 1px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}
.inline { display: inline; margin: 0; }
button.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.wrap { margin: 0 auto; padding: 28px 20px 80px; }
.back { margin: 0 0 8px; font-size: 14px; }

/* ---------- 容量バー ---------- */

.usage { margin: 0 0 22px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.usage-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 14px; }
.bar { height: 8px; border-radius: 999px; background: #eceef2; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .2s; }
.bar span.full { background: var(--warn); }

/* ---------- 一覧の枠カード ---------- */

.slots { display: grid; gap: 14px; }
.slot-card {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.slot-card:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(37, 99, 235, .08); }
.slot-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.slot-title { font-size: 18px; font-weight: 700; }
.slot-meta { font-size: 14px; }
.slot-note { color: var(--muted); font-size: 13px; }

.notice { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }

.pill {
  display: inline-block;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  line-height: 22px;
}
.pill.ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.pill.warn { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }

/* ---------- 提出画面 ---------- */

.url-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.url-label { color: var(--muted); font-size: 13px; }
#public-url { word-break: break-all; }
.hint { margin: 10px 0 18px; color: var(--muted); font-size: 13px; }

.alert { margin: 12px 0 0; padding: 12px 16px; border: 1px solid var(--warn); border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }

.drop {
  padding: 30px 20px;
  border: 2px dashed #c9cfd8;
  border-radius: 14px;
  background: var(--card);
  text-align: center;
  transition: border-color .15s, background .15s;
}
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-main { margin: 0; font-size: 17px; font-weight: 700; }
.drop-sub { margin: 4px 0 16px; color: var(--muted); font-size: 13px; }
.drop-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.btn, .btn-sub, .btn-del, .btn-danger {
  display: inline-block;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn { padding: 9px 18px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-weight: 700; }
.btn-sub { padding: 4px 12px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 13px; }
.btn-del { padding: 2px 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; }
.btn-del:hover { border-color: var(--ng); color: var(--ng); }
.btn-danger { padding: 7px 16px; border: 1px solid var(--ng); background: #fff; color: var(--ng); font-size: 13px; }

.progress { margin: 16px 0 0; }
.progress p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.result { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 14px; }
.result p { margin: 0; }
.result .ok { color: var(--ok); font-weight: 700; }
.result .ng { color: var(--ng); font-weight: 700; }
.result ul { margin: 6px 0 0; padding-left: 20px; }

.files { margin: 22px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.files-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.crumbs a { text-decoration: none; }
.crumbs .sep { color: var(--muted); }
.files table { width: 100%; border-collapse: collapse; }
.files td { padding: 9px 16px; border-bottom: 1px solid #f0f1f3; font-size: 14px; }
.files tr:last-child td { border-bottom: 0; }
.files td.name { word-break: break-all; }
.files td.num { color: var(--muted); font-size: 13px; white-space: nowrap; text-align: right; }
.files td.act { width: 1%; white-space: nowrap; text-align: right; }
.folder { font-weight: 700; text-decoration: none; }
.empty { margin: 0; padding: 18px 16px; }

.rules { margin: 0 0 18px; font-size: 14px; }
.rules summary { cursor: pointer; color: var(--muted); }
.rules ul { margin: 8px 0 0; padding-left: 20px; }
.danger-zone { margin: 28px 0 0; text-align: right; }

/* ---------- ログインエラー ---------- */

.center-card {
  max-width: 460px;
  margin: 12vh auto 0;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.center-card h1 { margin: 0 0 10px; font-size: 19px; }

/* LPosition — friendly workspace */
:root {
  --bg:#fff;
  --text:#203c30;
  --muted:#64746b;
  --line:#e1e9e2;
  --accent:#16834b;
  --accent-soft:#eff8f1;
  --ok:#167044;
  --ok-soft:#eaf7ed;
  --warn:#815c12;
  --warn-soft:#fff7d8;
  --yellow:#ffda55
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:24px
}
body {
  font-size:14px
}
h1,h2,p {
  overflow-wrap:anywhere
}
h2 {
  font-size:23px;
  letter-spacing:.02em;
  margin:0
}
a,button,input,summary {
  -webkit-tap-highlight-color:transparent
}
a:focus-visible,button:focus-visible,summary:focus-visible,.btn:focus-within {
  outline:3px solid #9b7200;
  outline-offset:5px
}
button:disabled {
  opacity:.5;
  cursor:wait
}
[hidden] {
  display:none!important
}
.skip-link {
  position:fixed;
  left:16px;
  top:-100px;
  z-index:10;
  background:#fff;
  padding:12px
}
.skip-link:focus {
  top:12px
}
.topbar {
  margin:auto;
  padding:20px 5%;
  gap:24px;
  min-height:90px
}
.brand {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:25px;
  letter-spacing:-1px
}
.brand img {
  object-fit:contain;
  width:45px;
  height:49px
}
.brand small {
  display:block;
  font-size:10px;
  letter-spacing:.08em;
  font-weight:500
}
.main-nav {
  display:flex;
  align-self:stretch;
  align-items:center;
  gap:28px;
  margin-right:auto;
  margin-left:40px
}
.main-nav a {
  text-decoration:none;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  padding:9px 0
}
.main-nav a[aria-current] {
  color:var(--accent);
  border-bottom:3px solid var(--accent)
}
.who {
  font-size:12px;
  gap:10px
}
.avatar {
  display:grid;
  place-items:center;
  width:33px;
  height:33px;
  border-radius:50%;
  background:#fff3c4;
  font-size:22px;
  color:#695118
}
.who .link {
  font-size:11px;
  text-underline-offset:4px
}
.wrap {
  padding:38px 5% 30px
}
.hero {
  position:relative;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  align-items:center;
  min-height:350px;
  background:#edf7ee;
  border:1px solid #dcecdf;
  border-radius:25px;
  padding:44px 46px;
  overflow:hidden
}
.eyebrow {
  font-size:10px;
  font-weight:800;
  letter-spacing:.18em;
  color:var(--accent)
}
.hero h1 {
  font-size:34px;
  line-height:1.65;
  letter-spacing:.02em;
  margin:14px 0
}
.hero h1 span {
  background:linear-gradient(transparent 72%,#ffe270 72%)
}
.hero p {
  font-size:13px;
  line-height:1.9;
  color:#51675a;
  margin:0 0 24px
}
.btn {
  border-radius:10px;
  padding:12px 21px;
  box-shadow:0 3px 0 #0b6336;
  font-size:13px
}
.btn:hover {
  background:#106e3e
}
.hero-button {
  display:inline-flex;
  gap:30px;
  align-items:center
}
.hero-button span {
  font-size:20px;
  line-height:1
}
.hero-art {
  height:260px;
  position:relative;
  margin-left:32px
}
.browser-art {
  position:absolute;
  inset:16px 8px 17px 12px;
  background:#fff;
  border:2px solid #285a3d;
  border-radius:12px;
  transform:rotate(-6deg);
  box-shadow:9px 10px 0 #c1dcc5
}
.browser-dots {
  border-bottom:2px solid #285a3d;
  padding:7px 12px;
  font-size:9px;
  letter-spacing:3px;
  color:#16834b
}
.browser-dots span {
  float:right;
  letter-spacing:1px;
  font-size:8px
}
.art-content {
  padding:23px
}
.art-tag {
  font-size:8px;
  letter-spacing:2px
}
.art-content strong {
  display:block;
  font-size:25px;
  line-height:1.5;
  margin-top:7px
}
.art-lines {
  margin:12px 0;
  width:105px;
  height:12px;
  border-top:3px solid #d8e7dc;
  border-bottom:3px solid #d8e7dc
}
.art-button {
  font-size:7px;
  font-weight:800;
  background:var(--yellow);
  padding:6px 9px;
  border-radius:4px
}
.art-flower {
  position:absolute;
  right:22px;
  bottom:42px;
  font-size:100px;
  line-height:1;
  color:var(--accent)
}
.art-spark {
  position:absolute;
  right:-12px;
  top:-22px;
  font-size:62px;
  color:#d7a600;
  z-index:1
}
.art-sticker {
  position:absolute;
  bottom:-2px;
  right:5px;
  transform:rotate(7deg);
  background:var(--yellow);
  border:2px solid #285a3d;
  padding:10px 18px;
  border-radius:7px;
  font-size:14px;
  font-weight:800;
  box-shadow:3px 4px 0 #285a3d
}
.art-sticker span {
  margin-left:14px
}
.art-orbit {
  position:absolute;
  bottom:0;
  left:-14px;
  font-size:43px;
  color:var(--accent)
}
.guide {
  padding:27px 4px 29px;
  border-bottom:1px solid var(--line)
}
.guide>div {
  display:flex;
  gap:13px;
  align-items:center;
  margin-bottom:20px
}
.guide h2 {
  font-size:14px
}
.guide ol {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px
}
.guide li {
  display:flex;
  gap:12px;
  align-items:center
}
.guide li>span {
  display:grid;
  place-items:center;
  background:#fff4c7;
  border-radius:50%;
  width:33px;
  height:33px;
  font-size:16px;
  font-weight:800;
  flex-shrink:0
}
.guide strong {
  font-size:12px
}
.guide small {
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:3px
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin:31px 0 20px
}
.section-heading p {
  color:var(--muted);
  font-size:12px;
  margin:0
}
.count {
  font-size:12px;
  margin-left:12px;
  vertical-align:middle;
  background:#f0f5ef;
  border-radius:7px;
  padding:3px 9px
}
.dashboard-usage {
  border:none;
  background:#f7f9f6;
  padding:12px 16px;
  display:flex;
  gap:22px;
  align-items:center;
  margin-bottom:22px
}
.dashboard-usage .usage-label {
  margin:0;
  flex:1;
  font-size:11px
}
.dashboard-usage .bar {
  width:200px;
  height:6px
}
.slots {
  /* 画面が広いほど横に多く並ぶ（カードが横に間延びしないよう、1枚の幅は保つ） */
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:20px
}
.slot-card {
  padding:0;
  gap:0;
  overflow:hidden;
  border-radius:17px;
  transition:transform .2s,border-color .2s,box-shadow .2s
}
.slot-card:hover {
  transform:translateY(-4px);
  border-color:#8bb79a;
  box-shadow:0 9px 22px #20452d12
}
.card-art {
  position:relative;
  height:140px;
  background:#eaf4ee;
  display:grid;
  place-items:center;
  border-bottom:1px solid var(--line)
}
.slot-card:nth-child(2) .card-art {
  background:#f0f3e9
}
.portfolio-card .card-art {
  background:#fff4c9
}
.card-number {
  position:absolute;
  top:14px;
  left:18px;
  font-size:8px;
  letter-spacing:.15em;
  font-weight:700;
  color:#5c7565
}
.work-symbol {
  display:grid;
  place-items:center;
  width:92px;
  height:66px;
  margin-top:20px;
  background:#fff;
  border:2px solid #588469;
  border-radius:8px;
  box-shadow:5px 5px 0 #bdd9c5;
  font-family:monospace;
  font-size:30px;
  font-weight:700;
  transform:rotate(-6deg);
  color:#16834b
}
.slot-card:nth-child(2) .work-symbol {
  transform:rotate(6deg)
}
.portfolio-card .work-symbol {
  font-size:65px;
  border:none;
  background:transparent;
  box-shadow:none
}
.art-mini-star {
  position:absolute;
  right:45px;
  top:42px;
  font-size:26px;
  color:#8c740c
}
.slot-head {
  padding:20px 19px 9px;
  gap:8px;
  justify-content:space-between
}
.slot-title {
  font-size:17px
}
.pill {
  padding:1px 7px;
  font-size:9px;
  line-height:19px;
  background:#f5f7f4;
  border-color:#e0e7df
}
.slot-meta {
  padding:0 19px;
  font-size:10px;
  color:var(--muted)
}
.slot-note {
  padding:9px 19px 18px;
  font-size:11px
}
.card-action {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:0 18px 18px;
  border:1px solid #cddfd0;
  border-radius:8px;
  padding:8px 12px;
  color:var(--accent);
  font-size:12px;
  font-weight:700;
  background:#f7fbf7
}
.card-action>span {
  font-size:19px
}
.portfolio-card .card-action {
  background:#fff7d9;
  border-color:#efdda0;
  color:#655317
}
.tip {
  display:flex;
  gap:18px;
  align-items:center;
  margin:27px 0;
  background:#fffbeb;
  border:1px solid #f3e9bb;
  border-radius:13px;
  padding:20px 24px
}
.tip>span {
  font-size:30px;
  color:#977512
}
.tip strong {
  font-size:13px
}
.tip p {
  font-size:11px;
  color:#716945;
  margin:5px 0 0
}
.footer {
  display:flex;
  justify-content:space-between;
  padding:23px 0 0;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:10px
}
.footer strong {
  font-size:14px;
  color:#5b7163
}
.back a {
  text-decoration:none;
  font-size:12px
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:22px 0
}
.page-heading h1 {
  font-size:29px;
  margin:4px 0
}
.page-heading p {
  font-size:12px;
  color:var(--muted);
  margin:0
}
.step-label {
  font-size:10px;
  letter-spacing:.1em;
  font-weight:800;
  color:var(--accent);
  margin:0 0 7px
}
.url-box {
  background:#f5f9f4;
  border-radius:12px;
  padding:17px 20px
}
.url-label {
  font-weight:700;
  color:var(--text)
}
#public-url {
  font-size:12px;
  flex:1
}
.btn-sub {
  padding:8px 14px;
  border-radius:8px
}
.hint {
  font-size:11px
}
.drop {
  background:#f3faf4;
  border:2px dashed #8fbea0;
  border-radius:18px;
  padding:30px 20px
}
.upload-symbol {
  margin:0 auto 14px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:#fff1b9;
  color:#16834b;
  width:60px;
  height:60px;
  font-size:35px;
  font-weight:700;
  transform:rotate(-5deg)
}
.drop-main {
  font-size:20px
}
.drop-sub {
  font-size:12px;
  margin:9px 0 18px
}
.drop .secondary {
  background:#fff;
  color:var(--accent);
  box-shadow:none;
  border-color:#a7cbb0
}
.file-input {
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  overflow:hidden
}
.drop-buttons .btn {
  position:relative
}
.drop-note {
  font-size:11px;
  color:var(--muted);
  margin:17px 0 0
}
.files {
  border-radius:14px
}
.files-head {
  padding:16px 20px;
  background:#f8faf7
}
.files table {
  table-layout:fixed
}
.files td:first-child {
  width:45%
}
.files td.act {
  width:65px
}
.files td {
  padding:12px;
  font-size:12px
}
.files td.num {
  font-size:10px;
  white-space:normal
}
.empty {
  text-align:center;
  padding:32px 15px;
  font-size:12px
}
.rules {
  background:#f8faf7;
  border:1px solid var(--line);
  padding:15px 20px;
  border-radius:12px;
  font-size:12px
}
.rules summary {
  font-weight:700;
  color:var(--text)
}
.rules li {
  margin:8px 0;
  overflow-wrap:anywhere
}
.danger-zone {
  border-top:1px solid var(--line);
  padding-top:22px
}
.danger-zone .btn-danger {
  font-size:11px
}
.result {
  background:#f8fbf7
}
.center-card {
  border-radius:20px;
  box-shadow:0 10px 40px #20452d0a
}
.center-card .brand {
  margin-bottom:25px
}
.progress {
  padding:18px;
  background:var(--accent-soft);
  border-radius:10px
}
@media(max-width:950px) {
  .main-nav {
    margin-left:auto;
    gap:20px
  }
  .who .avatar {
    display:none
  }
  .hero {
    padding:32px
  }
  .hero h1 {
    font-size:28px
  }
  .hero-art {
    margin-left:10px
  }
  .art-content strong {
    font-size:21px
  }
  .art-flower {
    font-size:76px;
    right:10px
  }
  .slot-head {
    align-items:start;
    flex-direction:column
  }
  .guide ol {
    gap:12px
  }
  .guide strong {
    font-size:11px
  }
}
@media(max-width:700px) {
  .topbar {
    padding:14px 20px;
    gap:12px
  }
  .brand {
    font-size:22px
  }
  .brand small {
    font-size:9px
  }
  .who {
    margin-left:auto;
    font-size:10px;
    gap:6px;
    max-width:50%
  }
  .main-nav {
    order:3;
    flex-basis:100%;
    gap:24px
  }
  .main-nav a {
    padding:5px 0
  }
  .wrap {
    padding:22px 18px 28px
  }
  .hero {
    grid-template-columns:1fr;
    padding:28px 24px;
    min-height:0
  }
  .hero h1 {
    font-size:27px
  }
  .hero p {
    font-size:12px
  }
  .hero-art {
    height:215px;
    width:265px;
    max-width:100%;
    margin:30px auto 5px
  }
  .browser-art {
    inset:8px 6px 16px
  }
  .art-content {
    padding:14px 20px
  }
  .art-content strong {
    font-size:21px
  }
  .art-flower {
    font-size:74px;
    bottom:34px;
    right:20px
  }
  .art-spark {
    font-size:48px;
    top:-23px
  }
  .art-sticker {
    font-size:11px;
    padding:7px 12px
  }
  .guide>div {
    display:block
  }
  .guide h2 {
    margin-top:5px
  }
  .guide ol {
    grid-template-columns:1fr;
    gap:16px
  }
  .guide strong {
    font-size:13px
  }
  .guide small {
    font-size:11px
  }
  .section-heading {
    align-items:center
  }
  .section-heading p {
    display:none
  }
  .dashboard-usage {
    display:block
  }
  .dashboard-usage .usage-label {
    font-size:10px;
    margin-bottom:8px
  }
  .dashboard-usage .bar {
    width:100%
  }
  .slots {
    grid-template-columns:1fr;
    gap:20px
  }
  .card-art {
    height:145px
  }
  .slot-head {
    flex-direction:row;
    align-items:center
  }
  .slot-title {
    font-size:18px
  }
  .slot-meta,.slot-note {
    font-size:12px
  }
  .pill {
    font-size:10px
  }
  .tip {
    padding:18px;
    gap:12px;
    align-items:start
  }
  .tip p br {
    display:none
  }
  .footer {
    gap:10px;
    align-items:center
  }
  .footer span {
    font-size:9px
  }
  .page-heading {
    align-items:start;
    flex-direction:column;
    gap:8px
  }
  .page-heading h1 {
    font-size:25px
  }
  .url-box {
    padding:15px
  }
  .url-label {
    flex-basis:100%
  }
  #public-url {
    flex-basis:60%;
    font-size:11px
  }
  .drop-main {
    font-size:17px
  }
  .drop-buttons {
    flex-direction:column
  }
  .drop-sub {
    font-size:11px
  }
  .drop .btn {
    width:100%
  }
  .files-head .muted {
    font-size:10px
  }
  .files td {
    padding:9px 6px;
    font-size:11px
  }
  .files td.num {
    font-size:9px
  }
  .files td:first-child {
    width:38%
  }
  .usage-label {
    flex-wrap:wrap;
    font-size:11px
  }
  .center-card {
    margin:10vh 18px;
    padding:25px
  }
  .files td.act {
    width:55px
  }
  .btn-del {
    padding:4px 7px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    transition:none!important
  }
}
@media(max-width:700px) {
  .hero h1 {
    font-size:clamp(18px,5.4vw,27px)
  }
}
.drop:has(input:disabled) {
  opacity:.65
}
.drop:has(input:disabled) .btn {
  cursor:wait
}

/* 管理画面で書いた課題内容（提出画面の上の枠） */
.task-desc {
  margin:0 0 18px;
  padding:17px 20px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff
}
.task-desc h2 {
  margin:0 0 6px;
  font-size:11px;
  letter-spacing:.08em;
  color:var(--accent)
}
.task-desc div {
  font-size:14px;
  line-height:1.8;
  word-break:break-word
}
.slots>.notice {
  grid-column:1/-1;
  border-radius:12px
}

/* ---------- トップページ（ログイン前の入口） ---------- */
.header-login {
  padding:10px 22px;
  font-size:13px;
  color:#fff
}
.landing-hero {
  grid-template-columns:1fr 1.1fr;
  gap:5%;
  min-height:calc(100vh - 90px);
  min-height:calc(100svh - 90px);
  border:none;
  border-radius:0;
  padding:60px 5%
}
.landing-hero h1 {
  font-size:clamp(30px,3.4vw,52px)
}
.landing-hero .hero-copy>p {
  font-size:15px
}
.landing-login-note {
  margin:18px 0 0!important;
  font-size:12px!important;
  color:var(--muted)!important
}
.landing-visual {
  display:flex;
  align-items:center;
  justify-content:center
}
/* 写真があるとき：写真を一番上に横幅いっぱいで出し、その下に文章を中央で置く */
.landing-hero.has-photo {
  grid-template-columns:1fr;
  justify-items:center;
  min-height:0;
  padding:20px 5% 64px;
  text-align:center
}
.landing-photo-band {
  position:relative;
  margin:0;
  overflow:hidden;
  background:#edf7ee
}
/* 下に敷く、ぼかした写真（はみ出したぼけの縁が見えないよう少し大きくする） */
.photo-soft {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:blur(14px) saturate(1.08);
  transform:scale(1.08)
}
/* 上に重ねる、くっきりした写真。中央（3人の顔のあたり）だけを見せ、外側ほど下のぼけが透ける */
.photo-sharp {
  position:relative;
  display:block;
  width:100%;
  height:auto;
  -webkit-mask-image:radial-gradient(ellipse 62% 80% at 50% 40%,#000 55%,transparent 100%);
  mask-image:radial-gradient(ellipse 62% 80% at 50% 40%,#000 55%,transparent 100%)
}
/* 写真の下側を、下の背景の緑へ溶け込ませる */
.landing-photo-band::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:40%;
  background:linear-gradient(to bottom,rgba(237,247,238,0),#edf7ee 92%);
  pointer-events:none
}
.landing-visual .hero-art {
  width:100%;
  height:clamp(260px,32vw,440px);
  margin-left:0
}
.landing-visual .art-content strong {
  font-size:clamp(25px,2.4vw,38px)
}
@media(max-width:700px) {
  .landing-hero {
    min-height:0;
    padding:36px 20px 40px
  }
  .landing-hero .hero-copy>p {
    font-size:13px
  }
  .landing-visual .hero-art {
    height:215px;
    width:265px
  }
  .landing-hero.has-photo {
    padding:12px 20px 36px
  }
  /* スマホで3:1のままだと細すぎるので、真ん中（ノートパソコンを囲む3人）を中心に少しだけ切り抜く */
  .photo-sharp {
    aspect-ratio:16/9;
    object-fit:cover;
    object-position:50% 50%;
    -webkit-mask-image:radial-gradient(ellipse 75% 85% at 50% 40%,#000 60%,transparent 100%);
    mask-image:radial-gradient(ellipse 75% 85% at 50% 40%,#000 60%,transparent 100%)
  }
}

/* ---------- マイワーク：左のサイドバー ＋ 中身（課題カード／右の案内 の2列） ---------- */
.app-shell {
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  min-height:calc(100vh - 91px)
}
/* サイドバーは画面の下まで伸ばし（背景の色で区切る）、中のメニューはスクロールしてもついてくる */
.app-sidebar {
  background:#f6f9f5;
  padding:32px 16px
}
/* 中身は右側いっぱいに広げる（左右 auto の余白のままだと、中身の幅まで縮んで真ん中に寄る） */
.app-shell>.wrap {
  margin:0;
  min-width:0
}
.mywork-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:28px;
  align-items:start;
  margin-bottom:32px
}
.side-nav {
  position:sticky;
  top:24px;
  display:grid;
  gap:4px
}
.side-nav a {
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:9px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap
}
.side-nav a span {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:26px;
  height:26px;
  border-radius:7px;
  background:#fff;
  font-size:13px
}
.side-nav a:hover {
  background:#eef4ed;
  color:var(--text)
}
.side-nav a[aria-current] {
  background:#fff;
  color:var(--accent);
  box-shadow:0 1px 3px #20452d14
}
.side-nav a[aria-current] span {
  background:var(--accent-soft);
  color:var(--accent)
}
/* カードはできるだけ3列（1列が220pxより狭くなる幅なら2列→1列）。左詰めで、枚数が少なくても引き伸ばさない。
   1枚が400pxを超えないよう、並び全体の幅に上限をつける（400px×3＋すき間20px×2） */
.mywork-main .slots {
  grid-template-columns:repeat(auto-fill,minmax(max(220px,calc((100% - 40px) / 3)),1fr));
  max-width:1240px
}
.mywork-main .slot-card {
  max-width:400px
}
/* ポートフォリオ：公開中の中身をカードの上に映す（見るだけ。クリックはカード全体のリンクへ通す） */
.slot-card.portfolio-card .card-art.has-preview {
  height:180px;
  display:block;
  overflow:hidden;
  background:#fff
}
.card-preview,
.card-preview-page {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  pointer-events:none
}
img.card-preview {
  object-fit:cover;
  object-position:top center
}
.card-preview-page {
  overflow:hidden
}
.card-preview-page iframe {
  width:1280px;
  height:800px;
  border:0;
  transform-origin:0 0
}
.card-art.has-preview .card-number {
  z-index:1;
  top:10px;
  left:10px;
  padding:4px 8px;
  border-radius:999px;
  background:#ffffffe6;
  box-shadow:0 1px 3px #20452d1f
}
/* 右の案内は、課題カードと混ざって見えないよう枠で囲まず、区切り線で分けるだけにする */
.mywork-info {
  position:sticky;
  top:24px;
  display:grid;
  gap:0
}
.mywork-info .tip,.mywork-info .info-card {
  margin:0;
  padding:16px 2px;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:none
}
.mywork-info>:first-child {
  padding-top:2px
}
.mywork-info>:last-child {
  border-bottom:0
}
.mywork-info .tip {
  align-items:flex-start
}
.mywork-info .tip>span {
  font-size:24px
}
.mywork-info .tip p br {
  display:none
}
.info-card {
  padding:18px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#f8faf7
}
.info-card strong {
  display:block;
  margin-bottom:6px;
  font-size:13px
}
.info-card p,.info-card li {
  font-size:11.5px;
  line-height:1.8;
  color:var(--muted)
}
.info-card p {
  margin:4px 0 0
}
.info-card ul {
  margin:0;
  padding-left:18px
}
.info-card b {
  color:var(--text)
}
/* 少し狭い画面：サイドバーを細くし、右の案内をカードの下へ回す */
@media(max-width:1100px) {
  .app-shell {
    grid-template-columns:190px minmax(0,1fr)
  }
  .mywork-layout {
    grid-template-columns:minmax(0,1fr)
  }
  /* カードの下に横並びにするときは、線を上に1本だけ引いて、項目どうしは間隔で分ける */
  .mywork-info {
    position:static;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    column-gap:28px;
    padding-top:18px;
    border-top:1px solid var(--line)
  }
  .mywork-info .tip,.mywork-info .info-card,.mywork-info>:first-child {
    padding:0 0 14px;
    border-bottom:0
  }
}
/* スマホ：サイドバーは上の横並びメニューにして、中身は1列 */
@media(max-width:700px) {
  .app-shell {
    grid-template-columns:1fr;
    min-height:0
  }
  .app-sidebar {
    padding:8px 18px
  }
  .mywork-layout {
    gap:18px
  }
  .side-nav {
    position:static;
    grid-auto-flow:column;
    justify-content:start;
    overflow-x:auto
  }
  .side-nav a {
    padding:8px 12px
  }
  .mywork-main .slots,.mywork-info {
    grid-template-columns:1fr
  }
}

/* ---------- ポートフォリオ：新規登録カード・作品カード ---------- */
.new-card {
  display:grid;
  place-content:center;
  justify-items:center;
  gap:6px;
  min-height:330px;
  padding:24px;
  border:2px dashed #a7cbb0;
  background:#f7fbf7;
  color:var(--accent);
  text-align:center
}
.new-card:hover {
  border-color:var(--accent);
  background:var(--accent-soft)
}
.new-plus {
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  margin-bottom:8px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 3px 0 #bdd9c5;
  font-size:30px;
  font-weight:700
}
.new-title {
  font-size:15px;
  font-weight:800
}
.new-sub {
  color:var(--muted);
  font-size:11.5px
}
.new-count {
  margin-top:6px;
  padding:2px 10px;
  border-radius:999px;
  background:#fff;
  color:var(--muted);
  font-size:10.5px
}
.new-card.is-full {
  border-color:var(--line);
  background:#fafbfa;
  color:var(--muted)
}
.new-card.is-full:hover {
  transform:none;
  box-shadow:none
}
/* PDF・画像の作品は、課題と同じ枠つきのマークにする */
.portfolio-card .work-symbol.framed {
  font-size:22px;
  letter-spacing:.06em;
  border:2px solid #8c740c;
  background:#fff;
  box-shadow:5px 5px 0 #efdda0;
  color:#655317
}
.item-actions {
  margin:10px 0 0!important
}
.danger-zone {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px
}

/* ---------- 新しい作品を登録（portfolio_new.php） ---------- */
.new-form {
  display:grid;
  gap:26px;
  margin-top:10px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff
}
.new-field {
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  border:0
}
.new-label {
  padding:0;
  font-size:14px;
  font-weight:800
}
.new-field input[type="text"] {
  width:100%;
  padding:12px 14px;
  border:1px solid #cfdcd2;
  border-radius:10px;
  font:inherit;
  font-size:15px
}
.new-field input[type="text"]:focus {
  outline:3px solid var(--accent-soft);
  border-color:var(--accent)
}
.new-hint {
  color:var(--muted);
  font-size:11.5px
}
.type-options {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:12px
}
.type-option {
  position:relative;
  display:grid;
  justify-items:start;
  gap:6px;
  padding:18px;
  border:2px solid var(--line);
  border-radius:14px;
  background:#fafcf9;
  cursor:pointer
}
.type-option input {
  position:absolute;
  top:16px;
  right:16px;
  accent-color:var(--accent)
}
.type-option:has(input:checked) {
  border-color:var(--accent);
  background:var(--accent-soft)
}
.type-symbol {
  display:grid;
  place-items:center;
  min-width:52px;
  height:40px;
  padding:0 8px;
  border:2px solid #588469;
  border-radius:8px;
  background:#fff;
  color:var(--accent);
  font-size:15px;
  font-weight:800
}
.type-option strong {
  font-size:14px
}
.type-option small {
  color:var(--muted);
  font-size:11.5px;
  line-height:1.7
}
.new-actions {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px
}
/* ポートフォリオのカードは、並び順に関係なく黄色の絵にする（2番目のカードを緑にする指定より優先） */
.slot-card.portfolio-card .card-art {
  background:#fff4c9
}

/* ---------- 提出画面（slot.php）：上に作品名と公開URL、下に3つのフレーム ---------- */
.slot-wrap {
  padding:22px 2.5% 48px
}
.slot-top {
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px 28px;
  margin:4px 0 18px
}
.slot-title-block {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px 14px;
  min-width:0
}
.slot-title-block .eyebrow {
  flex-basis:100%
}
.slot-title-block h1 {
  margin:0;
  font-size:26px;
  line-height:1.35;
  overflow-wrap:anywhere
}
.slot-url {
  flex:1 1 480px;
  min-width:0;
  max-width:760px;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:56px;
  padding:10px 12px 10px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff
}
.slot-url .pill {
  flex-shrink:0
}
.url-ready {
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
  min-width:0
}
/* 前の「公開URL」欄のスマホ用の指定（見出しを1行に広げる）を受けないよう、幅は文字の分だけにする */
.url-ready .url-label {
  flex:0 0 auto;
  font-size:12px
}
.url-ready #public-url {
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:700
}
.url-ready .btn-sub {
  flex-shrink:0
}
/* まだ公開できる状態でないとき：URLの代わりに、アップロードを完了させるよう促す */
.url-pending {
  flex:1;
  margin:0;
  padding:8px 12px;
  border:1px dashed #cfdccf;
  border-radius:9px;
  background:#f8faf7;
  color:var(--muted);
  font-size:12.5px;
  line-height:1.6
}

.slot-frames {
  display:grid;
  grid-template-columns:minmax(300px,340px) minmax(0,1fr) 270px;
  gap:18px;
  align-items:start
}
.frame {
  min-width:0;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  overflow:hidden
}
.frame-head {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 10px;
  min-height:50px;
  padding:9px 14px;
  border-bottom:1px solid var(--line);
  background:#f8faf7
}
.frame-head h2 {
  margin:0;
  font-size:13px
}
.frame-meta {
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:11px
}
.frame-body {
  padding:14px
}

/* 1：アップロード（フレームの幅に合わせて小さめに） */
.frame-files .drop {
  padding:18px 14px;
  border-radius:14px;
  text-align:center
}
.frame-files .upload-symbol {
  width:42px;
  height:42px;
  margin-bottom:8px;
  border-radius:11px;
  font-size:24px
}
.frame-files .drop-main {
  margin:0;
  font-size:15px
}
.frame-files .drop-sub {
  margin:4px 0 12px;
  font-size:11.5px
}
.frame-files .drop-sub strong {
  color:var(--accent);
  overflow-wrap:anywhere
}
.frame-files .drop-buttons .btn {
  padding:7px 12px;
  font-size:12.5px
}
.frame-files .drop-note {
  margin:10px 0 0;
  font-size:10.5px
}
.frame-files .progress,.frame-files .result,.frame-files .alert {
  margin:12px 0 0;
  font-size:12.5px
}

/* 1：フォルダツリー */
.tree-box {
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line)
}
.tree-help {
  margin:0 0 8px;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.6
}
.tree,.tree ul {
  list-style:none;
  margin:0;
  padding:0
}
.tree-row {
  display:flex;
  align-items:center;
  gap:6px;
  min-height:32px;
  padding:3px 6px 3px calc(4px + var(--depth,0) * 16px);
  border-radius:8px;
  font-size:12.5px
}
.tree-row:hover {
  background:#f3f7f2
}
.tree-row.is-target {
  background:var(--accent-soft);
  box-shadow:inset 0 0 0 1px #bfe0c9
}
.tree-row.is-previewing {
  background:#fff7d9;
  box-shadow:inset 0 0 0 1px #efdda0
}
.tree-row.over {
  background:var(--accent-soft);
  outline:2px dashed var(--accent);
  outline-offset:-2px
}
.tree-row button {
  font:inherit
}
.tree-row button:focus-visible {
  outline-offset:1px
}
.tree-toggle,.tree-spacer {
  flex-shrink:0;
  width:18px
}
.tree-toggle {
  height:22px;
  padding:0;
  border:0;
  border-radius:5px;
  background:none;
  color:var(--muted);
  font-size:11px;
  cursor:pointer
}
.tree-toggle:hover {
  background:#e5ede4
}
.tree-icon {
  flex-shrink:0;
  display:grid;
  place-items:center;
  min-width:32px;
  height:18px;
  padding:0 4px;
  border-radius:4px;
  background:#94a3a0;
  color:#fff;
  font-size:8.5px;
  font-weight:800;
  letter-spacing:.04em
}
/* フォルダは文字でなく形で見せる */
.tree-icon.kind-folder {
  position:relative;
  min-width:0;
  width:20px;
  height:15px;
  margin:2px 6px 0;
  padding:0;
  border-radius:2px 4px 4px 4px;
  background:#f2c14e
}
.tree-icon.kind-folder::before {
  content:"";
  position:absolute;
  left:0;
  top:-3px;
  width:9px;
  height:4px;
  border-radius:2px 2px 0 0;
  background:#e2ad33
}
.kind-html { background:#e0603a }
.kind-css { background:#3d74d6 }
.kind-js,.kind-json { background:#c79a12 }
.kind-img,.kind-svg,.kind-ico { background:#16834b }
.kind-pdf { background:#c0392b }
.kind-font { background:#7c5cc4 }
.kind-mov,.kind-snd { background:#0e7490 }
.tree-name {
  flex:1;
  min-width:0;
  padding:2px 0;
  border:0;
  background:none;
  color:var(--text);
  text-align:left;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  cursor:pointer
}
.is-dir .tree-name {
  font-weight:700
}
.tree-name:hover {
  color:var(--accent);
  text-decoration:underline
}
.tree-badge {
  flex-shrink:0;
  padding:1px 7px;
  border-radius:999px;
  font-size:9.5px;
  font-weight:700;
  white-space:nowrap
}
.tree-badge.target {
  background:var(--accent);
  color:#fff
}
.tree-badge.top {
  background:var(--ok-soft);
  color:var(--ok)
}
.tree-meta {
  flex-shrink:0;
  color:var(--muted);
  font-size:10.5px;
  white-space:nowrap
}
.tree-del {
  flex-shrink:0;
  width:22px;
  height:22px;
  padding:0;
  border:0;
  border-radius:6px;
  background:none;
  color:var(--muted);
  font-size:14px;
  line-height:1;
  cursor:pointer;
  opacity:0
}
.tree-row:hover .tree-del,.tree-del:focus-visible {
  opacity:1
}
.tree-del:hover {
  background:var(--ng-soft);
  color:var(--ng)
}
@media(hover:none) {
  .tree-del {
    opacity:1
  }
}
.tree-box .empty {
  padding:18px 8px
}

/* 2：プレビュー。スクロールしても見えたままにする */
.frame-preview {
  position:sticky;
  top:16px
}
.preview-tools {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin-left:auto
}
.preview-tools .btn-sub {
  padding:5px 11px;
  font-size:12px;
  text-decoration:none
}
.device-switch {
  display:flex;
  padding:2px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff
}
.device-switch button {
  padding:3px 11px;
  border:0;
  border-radius:6px;
  background:none;
  color:var(--muted);
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer
}
.device-switch button[aria-pressed="true"] {
  background:var(--accent);
  color:#fff
}
.preview-stage {
  position:relative;
  display:flex;
  justify-content:center;
  height:calc(100vh - 200px);
  min-height:480px;
  overflow:hidden;
  background:#eef2ee
}
.preview-viewport {
  width:100%;
  height:100%;
  overflow:hidden;
  background:#fff
}
.preview-viewport iframe {
  display:block;
  border:0;
  background:#fff;
  transform-origin:0 0
}
/* スマホの幅で見るときは、画面の外側を少し暗くして端末の幅を分かりやすくする */
.preview-viewport.is-sp {
  box-shadow:0 0 0 1px #d5ddd5,0 8px 30px #20452d1f
}
.preview-empty {
  position:absolute;
  inset:0;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:6px;
  padding:24px;
  text-align:center;
  color:var(--muted)
}
.preview-empty span {
  color:#c9a93a;
  font-size:30px
}
.preview-empty strong {
  color:var(--text);
  font-size:15px
}
.preview-empty p {
  max-width:340px;
  margin:0;
  font-size:12.5px
}

/* 3：案内。枠で囲まず、区切り線で分ける */
.frame-info {
  padding:4px 16px
}
.info-block {
  margin:0;
  padding:14px 0;
  border-bottom:1px solid var(--line)
}
.info-block:last-child {
  border-bottom:0
}
.info-block h2 {
  margin:0 0 8px;
  color:var(--accent);
  font-size:11px;
  letter-spacing:.08em
}
.frame-info .task-desc {
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:none
}
.frame-info .task-desc div {
  font-size:12.5px
}
.frame-info .hint {
  margin:10px 0 0
}
.frame-info .usage-label {
  font-size:11.5px
}
.frame-info .rules {
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:none;
  padding:14px 0
}
.frame-info .danger-zone {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-start;
  border-top:0
}
.steps {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px
}
.steps li {
  display:flex;
  align-items:flex-start;
  gap:9px;
  color:var(--muted);
  font-size:12.5px;
  line-height:1.6
}
.step-mark {
  flex-shrink:0;
  display:grid;
  place-items:center;
  width:21px;
  height:21px;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  font-size:11px;
  font-weight:800
}
.steps li.done {
  color:var(--ok)
}
.steps li.done .step-mark {
  border-color:var(--ok);
  background:var(--ok);
  color:#fff
}
.steps li.now {
  color:var(--text);
  font-weight:700
}
.steps li.now .step-mark {
  border-color:var(--accent);
  background:var(--accent-soft);
  color:var(--accent)
}

/* 少し狭い画面：案内（3）を下へ回し、ファイル（1）とプレビュー（2）の2列にする */
@media(max-width:1280px) {
  .slot-frames {
    grid-template-columns:minmax(280px,320px) minmax(0,1fr)
  }
  .frame-info {
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    column-gap:28px;
    padding:4px 20px
  }
  .frame-info .info-block {
    border-bottom:0
  }
}
/* スマホ・タブレット：1列（ファイル → プレビュー → 案内） */
@media(max-width:860px) {
  .slot-frames {
    grid-template-columns:minmax(0,1fr)
  }
  .frame-preview {
    position:static
  }
  .preview-stage {
    height:70vh;
    min-height:380px
  }
  /* 状態の札の下に、URLの行を枠の幅いっぱいで並べる */
  .slot-url {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    justify-items:start
  }
  .url-ready,.url-pending {
    width:100%
  }
}

/* ---------- アイコン（icons.php の lpup_icon()） ---------- */
.icon {
  flex-shrink:0;
  width:1.15em;
  height:1.15em;
  vertical-align:-.2em
}

/* ---------- ボタン：丸いピル形＋立体感で、角丸の四角いカードと見分けがつくようにする ---------- */
.btn,.btn-sub,.btn-danger {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  border-radius:999px;
  font-weight:700;
  line-height:1.3;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .15s,box-shadow .15s,transform .15s,color .15s
}
.btn {
  padding:11px 22px;
  border:0;
  background:linear-gradient(180deg,#1f9a5a,#16834b);
  color:#fff;
  font-size:13px;
  box-shadow:0 3px 0 #0b6336,0 6px 14px #16834b33
}
.btn:hover {
  background:linear-gradient(180deg,#1a8d51,#106e3e);
  transform:translateY(-1px);
  box-shadow:0 4px 0 #0b6336,0 8px 18px #16834b40
}
.btn:active {
  transform:translateY(2px);
  box-shadow:0 1px 0 #0b6336
}
/* 控えめなボタン：枠線を使わず、うすい緑のぬりで「押せるもの」と分かるようにする */
.btn-sub {
  padding:7px 15px;
  border:0;
  background:#e7f3ea;
  color:#14683d;
  font-size:12.5px
}
.btn-sub:hover {
  background:#d3e9d9;
  color:#0f5732
}
.btn-danger {
  padding:8px 16px;
  border:0;
  background:var(--ng-soft);
  color:var(--ng);
  font-size:12px
}
.btn-danger:hover {
  background:#fbdcdc
}
.drop .btn.secondary {
  border:0;
  background:#fff;
  color:var(--accent);
  box-shadow:inset 0 0 0 2px #a9d3b6,0 3px 0 #bfe0c9
}
.drop .btn.secondary:hover {
  background:#f3faf5
}
.hero-button .icon {
  width:20px;
  height:20px
}

/* カードの中の「アップロードする／作品を管理する」も、枠でなくボタンの形にする */
.card-action {
  display:inline-flex;
  align-items:center;
  gap:8px;
  justify-self:start;
  margin:6px 18px 20px;
  padding:7px 7px 7px 16px;
  border:0;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-size:12.5px;
  box-shadow:0 3px 0 #0b6336;
  transition:background-color .15s,transform .15s
}
.card-action>.card-action-arrow {
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  margin-left:6px;
  border-radius:50%;
  background:#ffffff2b;
  font-size:14px
}
.slot-card:hover .card-action {
  background:#106e3e;
  transform:translateY(-1px)
}
.portfolio-card .card-action {
  border:0;
  background:#f2c14e;
  color:#4a3b0a;
  box-shadow:0 3px 0 #c99a22
}
.slot-card.portfolio-card:hover .card-action {
  background:#e8b43a
}
.portfolio-card .card-action>.card-action-arrow {
  background:#ffffff70
}
.new-plus .icon {
  width:26px;
  height:26px
}

/* ---------- 1つ前のページへ戻るリンク：丸い矢印つきで目立たせる ---------- */
.back {
  margin:0 0 14px
}
.back a.back-link {
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:5px 16px 5px 5px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 0 0 1px var(--line),0 2px 6px #20452d0f;
  color:var(--text);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  transition:box-shadow .15s,color .15s
}
.back-icon {
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  font-size:14px;
  transition:transform .15s
}
.back a.back-link:hover {
  color:var(--accent);
  box-shadow:0 0 0 1px #bfe0c9,0 4px 12px #20452d1a
}
.back a.back-link:hover .back-icon {
  transform:translateX(-3px)
}

/* ---------- メニューのアイコン ---------- */
.main-nav a {
  display:inline-flex;
  align-items:center;
  gap:6px
}
.main-nav .icon,.side-nav a span .icon {
  width:15px;
  height:15px
}

/* ---------- マイワーク：カードと案内のあいだを広くとる／案内の見出しにアイコン ---------- */
.mywork-layout {
  gap:56px
}
.info-icon {
  display:inline-grid;
  place-items:center;
  flex-shrink:0;
  width:28px;
  height:28px;
  border-radius:8px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:15px
}
.info-card strong {
  display:flex;
  align-items:center;
  gap:9px
}
.mywork-info .tip>.info-icon {
  background:#fff4c9;
  color:#8c740c;
  font-size:15px
}
@media(max-width:1100px) {
  .mywork-layout {
    gap:36px
  }
}

/* ---------- 新しい作品を登録：横に広がりすぎないよう幅に上限をつける ---------- */
.narrow-page {
  max-width:960px;
  margin:0 auto
}
.type-symbol .icon {
  width:22px;
  height:22px
}

/* ---------- 提出画面：フレームのあいだ・番号・アップロード欄 ---------- */
.slot-frames {
  gap:28px
}
.frame-head h2 {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px
}
.frame-no {
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  font-size:11.5px;
  font-weight:800
}
.frame-files .drop {
  padding:24px 16px 18px;
  border:2px dashed #7fb892;
  background:linear-gradient(180deg,#f3faf5,#e9f5ed);
  transition:background-color .15s,border-color .15s,transform .15s
}
.frame-files .drop.over {
  border-color:var(--accent);
  background:#dcefe2;
  transform:scale(1.01)
}
.drop-icon {
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  margin:0 auto 10px;
  border-radius:50%;
  background:#fff;
  color:var(--accent);
  font-size:27px;
  box-shadow:0 4px 0 #cfe6d6
}
.frame-files .drop-main {
  margin:0;
  font-size:15px;
  line-height:1.5
}
.frame-files .drop-sub {
  margin:8px 0 0;
  font-size:11.5px
}
.frame-files .drop-sub strong {
  display:inline-block;
  padding:0 9px;
  border-radius:999px;
  background:#fff;
  color:var(--accent)
}
.drop-or {
  display:flex;
  align-items:center;
  gap:10px;
  margin:14px 0 12px;
  color:var(--muted);
  font-size:11px
}
.drop-or::before,.drop-or::after {
  content:"";
  flex:1;
  height:1px;
  background:#cfe0d3
}
.frame-files .drop-buttons {
  display:grid;
  justify-content:stretch;
  gap:9px
}
.frame-files .drop-buttons .btn {
  width:100%;
  padding:10px 14px;
  font-size:13px
}
.frame-files .drop-note {
  margin:12px 0 0;
  line-height:1.6
}
.tree-title {
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 4px;
  font-size:13px
}
.tree-title .icon {
  color:#e2ad33
}
.tree-del {
  display:grid;
  place-items:center;
  font-size:14px
}
.tree-del-icon {
  display:grid
}
.url-ready .url-label {
  display:inline-flex;
  align-items:center;
  gap:5px
}
.url-ready .url-label .icon {
  color:var(--accent)
}
.url-ready .btn {
  padding:8px 16px;
  font-size:12.5px
}
.url-pending {
  display:flex;
  align-items:center;
  gap:10px
}
.url-pending .icon {
  width:18px;
  height:18px;
  color:var(--accent)
}
.device-switch button {
  display:inline-flex;
  align-items:center;
  gap:5px
}
.preview-empty .preview-empty-icon {
  display:grid;
  place-items:center;
  width:64px;
  height:64px;
  margin-bottom:6px;
  border-radius:50%;
  background:#fff;
  color:var(--accent);
  font-size:28px;
  box-shadow:0 4px 0 #d5e6da
}

/* ---------- 課題の「この内容で提出する」（アップロード画面の3つ目の枠） ---------- */
.submit-action {
  margin:16px 0 4px
}
.submit-btn {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  padding:12px 18px;
  font-size:14px;
  text-decoration:none
}
/* 公開できる状態（ファイルがあり、一番上に index.html）になるまで押せない */
.submit-btn.is-disabled {
  background:#e9eee9;
  border-color:#e9eee9;
  box-shadow:none;
  color:#9aa89f;
  cursor:not-allowed;
  pointer-events:none
}
.submit-note {
  margin:8px 0 0;
  color:var(--muted);
  font-size:11px;
  text-align:center
}

/* ---------- 提出ページ（submit.php・中身は準備中） ---------- */
.submit-pending {
  margin:22px 0;
  padding:22px 24px;
  border:1px dashed #a7cbb0;
  border-radius:14px;
  background:#f7fbf7
}
.submit-pending strong {
  font-size:15px
}
.submit-pending p {
  margin:8px 0 0;
  color:var(--muted);
  font-size:13px
}
.submit-pending .btn-sub {
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:6px;
  text-decoration:none
}

/* ---------- 提出の確認モーダル（confirm_dialog.php） ---------- */
.modal {
  width:min(440px,calc(100vw - 32px));
  padding:0;
  border:0;
  border-radius:18px;
  box-shadow:0 20px 60px #20452d40
}
.modal::backdrop {
  background:#1b2b2266;
  backdrop-filter:blur(2px)
}
.modal-body {
  display:grid;
  justify-items:center;
  gap:10px;
  padding:30px 28px 24px;
  text-align:center
}
.modal-icon {
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border-radius:50%;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:24px
}
.modal-body h2 {
  margin:4px 0 0;
  font-size:18px;
  line-height:1.6
}
.modal-body p {
  margin:0;
  color:var(--muted);
  font-size:13px
}
.modal-error {
  padding:8px 12px;
  border-radius:8px;
  background:#fef2f2;
  color:#b91c1c!important
}
.modal-actions {
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:12px
}
.modal-actions .btn,.modal-actions .btn-sub {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 20px
}

/* ---------- 提出済みの表示（アップロード画面） ---------- */
.locked-note {
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:16px 18px;
  border:1px solid #a7cbb0;
  border-radius:14px;
  background:var(--accent-soft)
}
.locked-icon {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:30px;
  height:30px;
  border-radius:50%;
  background:var(--accent);
  color:#fff
}
.locked-note strong {
  font-size:14px
}
.locked-note p {
  margin:3px 0 0;
  color:var(--muted);
  font-size:12px
}
.submitted-badge {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin:0;
  padding:11px 14px;
  border-radius:10px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:14px;
  font-weight:800
}
.submit-view {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-top:8px;
  text-decoration:none
}
.submit-btn:disabled {
  background:#e9eee9;
  border-color:#e9eee9;
  box-shadow:none;
  color:#9aa89f;
  cursor:not-allowed;
  opacity:1
}

/* ---------- 模擬案件の完了報告（submit.php）。幅は「新しい作品を登録」と同じ .narrow-page ---------- */
.report-block {
  margin:0 0 18px;
  padding:22px 24px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff
}
.report-block h2 {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  font-size:16px
}
.report-block .req,.report-block .opt {
  padding:1px 8px;
  border-radius:999px;
  font-size:10.5px;
  font-weight:700
}
.report-block .req {
  background:#fdecec;
  color:#b91c1c
}
.report-block .opt {
  background:#f1f4f1;
  color:var(--muted)
}
.report-block .hint {
  margin:0 0 10px
}
.report-url {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  word-break:break-all
}
.report-input {
  width:100%;
  padding:14px 16px;
  border:1px solid #cfdcd2;
  border-radius:12px;
  font:inherit;
  font-size:14px;
  line-height:1.8;
  resize:vertical
}
.report-input:focus {
  outline:3px solid var(--accent-soft);
  border-color:var(--accent)
}
.save-status {
  min-height:1.5em;
  margin:6px 0 0;
  color:var(--muted);
  font-size:11.5px;
  text-align:right
}
.report-text {
  padding:16px 18px;
  border-radius:12px;
  background:#f8faf7;
  font-size:14px;
  line-height:1.9;
  word-break:break-word
}
.ev-add {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:14px
}
.ev-drop {
  display:grid;
  justify-items:center;
  gap:10px;
  padding:22px;
  border:2px dashed #a7cbb0;
  border-radius:14px;
  background:#f7fbf7;
  text-align:center
}
.ev-drop.over {
  border-color:var(--accent);
  background:var(--accent-soft)
}
.ev-drop p {
  margin:0;
  font-size:13px
}
.ev-drop .btn {
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px
}
.ev-caption-input,.ev-text-add textarea {
  width:100%;
  padding:10px 12px;
  border:1px solid #cfdcd2;
  border-radius:10px;
  font:inherit;
  font-size:13px
}
.ev-text-add {
  display:grid;
  gap:8px;
  align-content:start
}
.ev-text-add .btn-sub {
  justify-self:end;
  display:inline-flex;
  align-items:center;
  gap:6px
}
.ev-message {
  margin:12px 0 0;
  font-size:12px;
  color:var(--accent)
}
.ev-message.ng {
  color:#b91c1c
}
.ev-list {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:14px;
  margin:16px 0 0;
  padding:0;
  list-style:none
}
.ev-item {
  position:relative;
  display:grid;
  gap:8px;
  align-content:start;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fafcf9
}
.ev-thumb img {
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:8px;
  background:#fff
}
.ev-caption {
  margin:0;
  font-size:12px
}
.ev-text {
  max-height:180px;
  overflow:auto;
  padding:4px 2px;
  font-size:12.5px;
  line-height:1.7;
  white-space:pre-wrap;
  word-break:break-word
}
.ev-del {
  justify-self:end
}
.report-submit {
  display:grid;
  justify-items:center;
  gap:6px;
  margin:26px 0 10px
}
.report-submit .submit-btn {
  width:auto;
  min-width:260px
}

/* ---------- フィードバック：未読の数（スマホの通知のような丸） ---------- */
.nav-badge {
  display:inline-grid;
  place-items:center;
  min-width:20px;
  height:20px;
  margin-left:auto;
  padding:0 6px;
  border-radius:999px;
  background:#e5484d;
  color:#fff;
  font-size:11px;
  font-weight:800;
  line-height:1
}
.main-nav .nav-badge {
  margin-left:6px
}
.pill.mode-project {
  border-color:#e8cf7a;
  background:#fff7d6;
  color:#7a5b00
}

/* ---------- フィードバック（feedback.php） ---------- */
.feedback-page {
  width:100%
}
.feedback-empty {
  display:grid;
  justify-items:center;
  gap:8px;
  padding:48px 24px;
  border:1px dashed #cfe3d4;
  border-radius:16px;
  background:#f7fbf7;
  text-align:center
}
.feedback-empty p {
  margin:0;
  color:var(--muted);
  font-size:13px
}
.feedback-empty .btn-sub {
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:6px;
  text-decoration:none
}
.feedback-list {
  display:grid;
  gap:12px;
  margin:0;
  padding:0;
  list-style:none
}
.feedback-item {
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  color:var(--text);
  text-decoration:none;
  transition:border-color .2s,box-shadow .2s,transform .2s
}
.feedback-item:hover {
  border-color:#8bb79a;
  box-shadow:0 8px 20px #20452d12;
  transform:translateY(-2px)
}
.feedback-item.is-unread {
  border-color:#a7cbb0;
  background:#f7fbf7
}
.feedback-score {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:74px;
  height:74px;
  border-radius:50%;
  background:var(--accent-soft);
  color:var(--accent);
  line-height:1.1
}
.feedback-score strong {
  font-size:24px
}
.feedback-score small {
  font-size:10px;
  color:var(--muted)
}
.feedback-main {
  display:grid;
  gap:6px;
  flex:1;
  min-width:0
}
.feedback-head {
  display:flex;
  align-items:center;
  gap:8px
}
.feedback-label {
  font-size:15px;
  font-weight:800
}
.unread-dot {
  padding:1px 7px;
  border-radius:999px;
  background:#e5484d;
  color:#fff;
  font-size:10px;
  font-weight:800;
  letter-spacing:.05em
}
.feedback-tags {
  display:flex;
  flex-wrap:wrap;
  gap:6px
}
.feedback-excerpt {
  overflow:hidden;
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
  text-overflow:ellipsis
}
.feedback-date {
  flex-shrink:0;
  color:var(--muted);
  font-size:11px
}
.feedback-result h2 {
  margin-bottom:6px
}
.feedback-big-score {
  display:flex;
  align-items:baseline;
  gap:8px;
  margin:0 0 12px;
  color:var(--accent)
}
.feedback-big-score strong {
  font-size:52px;
  line-height:1
}
.feedback-big-score span {
  color:var(--muted);
  font-size:15px;
  font-weight:700
}
.feedback-meta {
  display:grid;
  grid-template-columns:auto 1fr;
  gap:6px 16px;
  margin:0 0 12px;
  font-size:13px
}
.feedback-meta dt {
  color:var(--muted)
}
.feedback-meta dd {
  margin:0;
  word-break:break-all
}
.feedback-links {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0
}
.feedback-links .btn-sub {
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none
}
@media(max-width:700px) {
  .feedback-item {
    flex-wrap:wrap;
    gap:12px
  }
  .feedback-score {
    width:60px;
    height:60px
  }
  .feedback-date {
    width:100%;
    text-align:right
  }
}

/* ---------- 採点：良／不可 ---------- */
.feedback-score.grade-ng {
  background:#fff7ed;
  color:#b45309
}
.feedback-score strong {
  font-size:22px
}
.feedback-grade {
  margin:4px 0 0
}
.feedback-grade strong {
  display:inline-grid;
  place-items:center;
  min-width:120px;
  padding:10px 26px;
  border-radius:16px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:40px;
  line-height:1.2
}
.feedback-grade.grade-ng strong {
  background:#fff7ed;
  color:#b45309
}

/* ---------- 作品へのコメント（運営が付けた印） ---------- */
.anno-head {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 12px;
  margin-bottom:8px
}
.anno-head h2 {
  margin:0
}
.anno-tools {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px
}
.anno-page {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:12px
}
.anno-page select {
  padding:5px 8px;
  border:1px solid var(--line);
  border-radius:8px;
  font:inherit
}
.anno-view .hint {
  margin:0 0 10px
}
.anno-stage {
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:12px;
  background:#eef2ee
}
.anno-stage iframe {
  display:block;
  width:100%;
  height:70vh;
  min-height:480px;
  margin:0 auto;
  border:0;
  background:#fff;
  transition:width .2s
}
.anno-stage.is-sp iframe {
  width:390px;
  max-width:100%
}
.anno-view-list {
  display:grid;
  gap:8px;
  margin:14px 0 0;
  padding:0;
  list-style:none
}
.anno-view-item button {
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:6px 10px;
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fafcf9;
  color:var(--text);
  font:inherit;
  text-align:left;
  cursor:pointer
}
.anno-view-item.is-active button {
  border-color:var(--accent);
  background:var(--accent-soft)
}
.anno-chip {
  display:inline-block;
  padding:1px 9px;
  border-radius:999px;
  color:#fff;
  font-size:12px;
  font-weight:700;
  white-space:nowrap
}
.anno-memo {
  flex:1;
  min-width:0;
  font-size:13px;
  white-space:pre-wrap;
  word-break:break-word
}

/* Feedback studio: preview and review stay side by side. */
.page-feedback { background: #f6f5ef; }
.feedback-detail { max-width: 1720px; margin: 0 auto; }
.feedback-detail .page-heading { margin-bottom: 24px; }
.feedback-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 410px); gap: 24px; align-items: start; }
.feedback-workspace .report-block { margin: 0; padding: 24px; border: 1px solid #dedfd7; border-radius: 22px; background: #fff; box-shadow: 0 5px 0 #e7e8df; min-width: 0; }
.feedback-workspace h2 { font-size: 18px; margin: 0 0 14px; }
.feedback-workspace .feedback-preview { position: sticky; top: 20px; padding: 20px; }
.feedback-step { display: block; margin-bottom: 8px; color: #47776a; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.feedback-notes { display: grid; gap: 20px; min-width: 0; }
.feedback-workspace .feedback-result { background: radial-gradient(circle at 90% 10%, #f7d778 0 5px, transparent 6px), radial-gradient(circle at 8% 88%, #9ed9c5 0 4px, transparent 5px), #fff9e9; border-color: #e9d7aa; }
.feedback-result-body { display: flex; align-items: center; gap: 16px; }
.feedback-result-body .feedback-stamp { width: 132px; height: 132px; flex-shrink: 0; transform: rotate(-8deg); }
.feedback-result-body strong { font-size: 16px; line-height: 1.7; }
.feedback-result-body p { margin: 8px 0 0; font-size: 13px; line-height: 1.9; color: #58635e; }
.feedback-notes .report-text { font-size: 14px; line-height: 2; background: #f6f8f4; padding: 16px; border-radius: 14px; overflow-wrap: anywhere; }
.feedback-preview .anno-stage { padding: 12px; background: #e9eee8; border-color: #d6dfd7; border-radius: 16px; }
.feedback-preview .anno-stage iframe { height: 72vh; min-height: 420px; border-radius: 8px; }
.feedback-preview-note { margin: 12px 0 0; color: #68746d; font-size: 12px; text-align: center; }
.feedback-preview .anno-page select { max-width: 220px; }
.feedback-notes .anno-view-item button { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px; background: #fff; border: 2px solid #e5e9e0; border-radius: 16px; transition: border-color .15s, background .15s; }
.feedback-notes .anno-view-item button:hover, .feedback-notes .anno-view-item.is-active button { border-color: #398771; background: #f1faf4; }
.feedback-notes .anno-view-item small { grid-column: 2; overflow-wrap: anywhere; }
.feedback-notes .anno-memo { line-height: 1.85; }
.anno-sticker { display: grid; justify-items: center; gap: 2px; color: #4c6057; font-size: 11px; font-weight: 800; }
.anno-sticker img { display: block; width: 64px; height: 64px; transform: rotate(-6deg); }
.feedback-score, .feedback-score.grade-ng { width: 96px; height: auto; background: none; border-radius: 0; gap: 3px; }
.feedback-score .feedback-stamp { display: block; width: 96px; height: 96px; transform: rotate(-8deg); }
.feedback-item { border-radius: 22px; box-shadow: 0 4px 0 #e5e8de; }
.feedback-item.is-unread { background: #fffdf4; border-color: #ddcd91; }
.feedback-item:focus-visible, .feedback-workspace button:focus-visible { outline: 3px solid #5a50ad; outline-offset: 4px; }
@media (min-width: 1101px) { .feedback-notes { max-height: calc(100vh - 40px); overflow-y: auto; padding: 0 5px 6px 0; scrollbar-gutter: stable; } }
@media (max-width: 1100px) {
  .feedback-workspace { grid-template-columns: minmax(0, 1fr); }
  .feedback-workspace .feedback-preview { position: static; }
  .feedback-preview .anno-stage iframe { height: 60vh; }
}
@media (max-width: 600px) {
  .feedback-workspace { gap: 18px; }
  .feedback-workspace .report-block { padding: 16px; border-radius: 18px; }
  .feedback-preview .anno-stage { padding: 6px; }
  .feedback-preview .anno-stage iframe { min-height: 320px; }
  .feedback-result-body .feedback-stamp { width: 110px; height: 110px; }
  .feedback-result-body { gap: 10px; }
  .feedback-meta { grid-template-columns: 1fr; gap: 4px; }
  .feedback-meta dd { margin-bottom: 8px; }
  .feedback-score, .feedback-score .feedback-stamp { width: 76px; }
  .feedback-score .feedback-stamp { height: 76px; }
}
@media (prefers-reduced-motion: reduce) { .page-feedback *, .page-feedback *::before, .page-feedback *::after { scroll-behavior: auto !important; transition: none !important; } }

@media (max-width: 700px) {
  .page-feedback .app-shell { grid-template-columns: minmax(0, 1fr); }
  .page-feedback .app-sidebar { min-width: 0; }
}

/* ---------- 採点が「良」の課題：カードに「済」の印 ---------- */
.done-stamp {
  position:absolute;
  top:18px;
  right:22px;
  display:grid;
  place-items:center;
  width:74px;
  height:74px;
  border:3px solid #c8412f;
  border-radius:50%;
  box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 5px #c8412f;
  background:#fffdfb;
  color:#c8412f;
  font-family:"Hiragino Mincho ProN","Yu Mincho",serif;
  font-size:36px;
  font-weight:800;
  line-height:1;
  transform:rotate(-14deg);
  opacity:.92
}
.slot-card.is-done .card-art {
  background:#f4f6f3
}
.slot-card.is-done .card-art>.work-symbol,
.slot-card.is-done .card-art>.art-mini-star {
  opacity:.45
}
/* 済んだ課題は、次の一手ではないのでボタンを控えめに */
.slot-card.is-done .card-action {
  background:#fff;
  color:var(--accent);
  box-shadow:inset 0 0 0 1.5px #b7d3c0
}
.slot-card.is-done:hover .card-action {
  background:#f1f8f3
}
.slot-card.is-done .card-action>.card-action-arrow {
  background:#e6f2ea
}
/* 不可：直して再提出する */
.slot-card.is-redo {
  border-color:#f3c9a0
}

/* ---------- フィードバック：不可のときの再提出の入口 ---------- */
.resubmit-box {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 18px;
  margin-top:16px;
  padding:14px 16px;
  border:1px solid #fed7aa;
  border-radius:12px;
  background:#fff7ed
}
.resubmit-box strong {
  color:#b45309
}
.resubmit-box p {
  margin:4px 0 0;
  font-size:13px;
  color:var(--muted)
}
.resubmit-box .btn {
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none
}
.resubmitted-note {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
  font-size:13px
}

/* アップロード画面：不可で再提出できるときの案内 */
.locked-note.resubmit-note {
  border-color:#fed7aa;
  background:#fff7ed
}
.resubmit-note .locked-icon {
  background:#b45309
}
.resubmit-note a {
  margin-left:6px;
  color:#b45309;
  font-weight:700
}

.top-guide-link { text-align: center; margin: 16px 0 28px; }
.top-guide-link a { color: #226440; font-weight: 700; text-underline-offset: 4px; }

/* ---------- ポートフォリオ：公開までの流れの一番下の「フィードバックを受ける」 ---------- */
.pill.mode-portfolio {
  border-color:#b9d8c4;
  background:#eef8f1;
  color:#1d6b43
}
.feedback-request {
  margin:14px 0 0;
  padding:12px 0 0;
  border-top:1px dashed var(--line);
  text-align:center
}
.feedback-request-lead {
  margin:0 0 8px;
  color:var(--muted);
  font-size:11px
}
.feedback-request-btn {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:700
}
.feedback-request-btn.is-disabled,
.feedback-request-btn:disabled {
  opacity:.55;
  cursor:not-allowed
}
.feedback-request .submitted-badge {
  font-size:12px;
  font-weight:700
}
/* アップロード画面：フィードバックが届いていて、また送れるとき */
.locked-note.feedback-arrived-note a {
  margin-left:6px;
  font-weight:700
}

/* ---------- ポートフォリオの確認モーダル：制作意図シート（必須・ファイル添付） ---------- */
/* 画面に収まらないときは、モーダルの中をスクロールする */
.modal {
  max-height:calc(100dvh - 24px);
  overflow:auto;
  overscroll-behavior:contain
}
.modal:has(.modal-intent) {
  width:min(560px,calc(100vw - 24px))
}
.modal-intent {
  display:grid;
  gap:6px;
  width:100%;
  margin-top:6px;
  text-align:left
}
.modal-intent-label {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:800
}
.modal-intent-label .req {
  padding:1px 7px;
  border-radius:999px;
  background:#fdecea;
  color:#b91c1c;
  font-size:10px;
  font-weight:800
}
.modal-body .modal-intent-help {
  font-size:12px;
  line-height:1.8
}
.intent-drop {
  position:relative;
  display:grid;
  justify-items:center;
  gap:2px;
  padding:18px 12px;
  border:2px dashed #a7cbb0;
  border-radius:12px;
  background:#f6fbf7;
  color:var(--accent);
  text-align:center;
  cursor:pointer;
  transition:background-color .15s,border-color .15s
}
.intent-drop .icon {
  width:26px;
  height:26px
}
.intent-drop:hover,.intent-drop.is-over {
  border-color:var(--accent);
  background:#eaf6ee
}
.intent-drop:focus-within {
  outline:3px solid var(--accent-soft)
}
.intent-drop.has-file {
  border-style:solid
}
.intent-drop-main {
  font-size:14px;
  font-weight:800
}
.intent-drop-sub {
  color:var(--muted);
  font-size:11px
}
/* 見えないが、キーボードやスクリーンリーダーでは選べるファイル入力 */
.intent-drop .file-input {
  position:absolute;
  width:1px;
  height:1px;
  opacity:0
}
.modal-body .intent-name {
  font-size:13px;
  word-break:break-all
}
.modal-body .intent-name.is-selected {
  color:var(--text);
  font-weight:700
}
.modal-body .modal-intent-rule,.modal-body .intent-prev {
  font-size:11px
}
@media (max-width:600px) {
  .modal-body {
    padding:22px 16px 18px
  }
  .modal-body h2 {
    font-size:16px
  }
  .modal-actions {
    width:100%
  }
  .modal-actions .btn,.modal-actions .btn-sub {
    flex:1;
    justify-content:center;
    padding:10px 12px
  }
}

/* フィードバック画面：送った制作意図シート */
.intent-file {
  display:grid;
  gap:2px;
  margin:0 0 10px
}
.intent-file-name {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  word-break:break-all
}
