/* ブラウザ編集の一覧・マイページ（public/css/app.css の変数を使う） */
.ep { padding-bottom: 48px; }
.ep-narrow { max-width: 720px; }
.ep-lead { font-size: 1.05rem; }
.ep-points { padding-left: 1.2em; margin: 0 0 20px; }
.ep-points li { margin-bottom: 4px; }
.ep-cats { margin: 0 0 20px; }
/* 見本の枠は A4 と同じ縦長にそろえる（行の高さがそろう）。SNS の正方形は枠の中に全体を収めて中央に置く */
.ep-thumb { aspect-ratio: 210 / 297; background: #eef1f3; }
.ep-grid .card-thumb img { object-fit: cover; }
/* A4 縦以外（横長・正方形・はがき・名刺・ストーリーズなど）は、枠の中に全体を収めて中央に置く */
.ep-grid .ep-thumb:not(.ep-thumb-a4p) { padding: 0 8%; }
.ep-grid .ep-thumb:not(.ep-thumb-a4p) img { object-fit: contain; width: auto; height: auto; max-width: 100%; max-height: 92%; box-shadow: 0 1px 6px rgba(8, 31, 50, .18); }
.ep-work-thumb:not(.ep-thumb-a4p) img { object-fit: contain; }
.badge-edit { background: var(--navy); color: #fff; }
.ep-notes { margin-top: 36px; background: var(--white); border-radius: var(--radius); padding: 4px 20px 12px; box-shadow: var(--shadow); }
.ep-notes ul { padding-left: 1.2em; }
.ep-works { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.ep-work { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: 88px 1fr; grid-template-areas: "open open" "meta meta" "actions actions"; gap: 6px 12px; }
.ep-work-open { grid-area: open; display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--navy); font-weight: 700; }
.ep-work-thumb { width: 64px; flex: 0 0 64px; background: #eef1f3; border-radius: 4px; overflow: hidden; display: block; }
.ep-work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-work-meta { grid-area: meta; color: var(--sub); font-size: .85rem; }
.ep-work-actions { grid-area: actions; display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.ep-work-actions form { margin: 0; }
.ep-work-actions details > summary { list-style: none; }
.ep-work-actions details > summary::-webkit-details-marker { display: none; }
.ep-work-actions details[open] { flex-basis: 100%; }
.ep-work-actions details form { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ep-work-actions details input[type="text"] { flex: 1 1 200px; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; font: inherit; }
.ep-local { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; }
.ep-local ul { margin: 0; padding-left: 1.2em; }
.ep-cta { background: var(--teal-pale); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ep-cta p { margin: 0; }
/* 会社の設定（2026-10-07） */
.ep-brand h2 { font-size: 1.05rem; margin: 18px 0 8px; }
.ep-brand h2:first-of-type { margin-top: 0; }
.ep-brand-logo { background: repeating-conic-gradient(#eef1f3 0% 25%, #fff 0% 50%) 50% / 16px 16px; display: inline-block; padding: 12px; border-radius: var(--radius); margin-bottom: 8px; }
.ep-brand-colors { display: flex; gap: 20px; flex-wrap: wrap; margin: 8px 0 16px; }
.ep-brand-colors label { display: flex; align-items: center; gap: 8px; }
/* 何を作りますか（媒体・サイズから選ぶ入口。2026-10-07） */
.ep-step { font-size: 1.3rem; margin: 28px 0 6px; }
.ep-step small { font-size: .85rem; color: var(--sub); font-weight: 400; margin-left: 10px; }
.ep-media-group { font-size: 1rem; margin: 22px 0 10px; color: var(--navy); }
.ep-media { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ep-media-card { display: grid; align-content: start; gap: 3px; height: 100%; box-sizing: border-box; background: var(--white); border: 1px solid transparent; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 14px 12px; text-decoration: none; color: inherit; }
.ep-media-card:hover, .ep-media-card:focus-visible { border-color: var(--teal); }
.ep-media-box { height: 104px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; background: #f3f5f7; border-radius: 6px; }
.ep-media-shape { display: block; max-width: 86%; max-height: 86%; background: #fff; border: 2px solid var(--navy); border-radius: 2px; box-sizing: border-box; }
.ep-media-shape.ep-media-sns { border-color: var(--teal); border-radius: 8px; }
.ep-media-label { font-weight: 700; color: var(--navy); line-height: 1.4; }
.ep-media-size { font-size: .82rem; color: var(--sub); }
.ep-media-uses { font-size: .85rem; }
.ep-media-count { font-size: .8rem; color: var(--teal); margin-top: 2px; }
.ep-all { margin: 20px 0 0; }
.ep-back { margin: 18px 0 0; }
.ep-back a { text-decoration: none; }
.ep-blank-thumb { display: flex; align-items: center; justify-content: center; }
.ep-blank-shape { display: flex; align-items: center; justify-content: center; max-width: 76%; max-height: 76%; border: 2px dashed var(--teal); border-radius: 4px; background: #fff; }
.ep-blank-shape span { font-size: 2.4rem; color: var(--teal); line-height: 1; }
.ep-blank-card .card-title { color: var(--teal); }
/* 用紙の形（縦横比）。インラインの style は CSP で使えないため、用紙ごとのクラスで指定する */
.ep-shape-a4p { aspect-ratio: 210 / 297; height: 86%; }
.ep-shape-a4l { aspect-ratio: 297 / 210; width: 86%; }
.ep-shape-a3p { aspect-ratio: 297 / 420; height: 86%; }
.ep-shape-a5p { aspect-ratio: 148 / 210; height: 86%; }
.ep-shape-b5p { aspect-ratio: 182 / 257; height: 86%; }
.ep-shape-hagaki { aspect-ratio: 100 / 148; height: 86%; }
.ep-shape-meishi { aspect-ratio: 91 / 55; width: 86%; }
.ep-shape-sns1080 { aspect-ratio: 1080 / 1080; width: 86%; }
.ep-shape-sns4x5 { aspect-ratio: 1080 / 1350; height: 86%; }
.ep-shape-story { aspect-ratio: 1080 / 1920; height: 86%; }
.ep-blank-shape.ep-shape-a4l, .ep-blank-shape.ep-shape-meishi, .ep-blank-shape.ep-shape-sns1080 { width: 76%; }
@media (max-width: 600px) {
  .ep-media { gap: 8px; }
  .ep-media-card { padding: 10px 10px 8px; }
  .ep-media-box { height: 76px; }
  .ep-media-uses { font-size: .78rem; }
}

.ep-shape-a4tri_out { aspect-ratio: 297 / 210; width: 86%; }
.ep-shape-a4tri_in { aspect-ratio: 297 / 210; width: 86%; }
.ep-shape-line_rich { aspect-ratio: 2500 / 1686; width: 86%; }
/* 三つ折りは折り線、リッチメニューは6分割を図に描く */
.ep-shape-a4tri_out, .ep-shape-a4tri_in { background-image: linear-gradient(90deg, transparent calc(33.3% - 1px), var(--navy) calc(33.3% - 1px), var(--navy) calc(33.3% + 1px), transparent calc(33.3% + 1px), transparent calc(66.6% - 1px), var(--navy) calc(66.6% - 1px), var(--navy) calc(66.6% + 1px), transparent calc(66.6% + 1px)); background-color: #fff; }
.ep-shape-a4tri_out, .ep-shape-a4tri_in { border-style: solid; }
.ep-shape-line_rich { background-image: linear-gradient(90deg, transparent calc(33.3% - 1px), var(--teal) calc(33.3% - 1px), var(--teal) calc(33.3% + 1px), transparent calc(33.3% + 1px), transparent calc(66.6% - 1px), var(--teal) calc(66.6% - 1px), var(--teal) calc(66.6% + 1px), transparent calc(66.6% + 1px)), linear-gradient(0deg, transparent calc(50% - 1px), var(--teal) calc(50% - 1px), var(--teal) calc(50% + 1px), transparent calc(50% + 1px)); background-color: #fff; }
.ep-custom { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 6px; }
.ep-custom-row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.ep-custom-row label { display: grid; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--navy); }
.ep-custom-row input, .ep-custom-row select { font: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; background: #fff; }
.ep-custom-row input { width: 7em; }
.ep-custom-x { padding-bottom: 10px; color: var(--sub); }
/* 入口を一覧で見渡せる形に（2026-10-07 村松さん指示：説明は下、開いてすぐ2列でずらりと） */
.ep-title { font-size: 1.6rem; margin: 6px 0 2px; }
.ep-sub { color: var(--sub); margin: 0 0 14px; font-size: .92rem; }
.ep-media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.ep-media > li.ep-media-group { grid-column: 1 / -1; font-weight: 700; color: var(--navy); font-size: .95rem; margin: 10px 0 0; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
.ep-media > li.ep-media-group:first-child { margin-top: 0; }
.ep-media-card { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; }
.ep-media-box { flex: 0 0 64px; width: 64px; height: 64px; margin: 0; }
.ep-media-text { display: grid; gap: 1px; min-width: 0; }
.ep-media-label { font-size: 1rem; }
.ep-media-size { font-size: .8rem; color: var(--sub); }
.ep-media-uses { margin-left: .8em; color: var(--ink, #333); }
.ep-media-count { font-size: .76rem; margin-top: 1px; }
.ep-media-head { font-size: 1rem; color: var(--navy); margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
@media (max-width: 600px) {
  .ep-title { font-size: 1.3rem; }
  .ep-media { gap: 6px; }
  .ep-media-card { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }
  .ep-media-box { width: auto; height: 56px; flex-basis: auto; }
  .ep-media-label { font-size: .88rem; line-height: 1.35; }
  .ep-media-uses { display: none; }
}
.ep-media-card { padding: 7px 12px 7px 8px; gap: 12px; }
.ep-media-box { flex-basis: 50px; width: 50px; height: 50px; }
.ep-media-count { display: inline-block; margin: 0 0 0 .7em; padding: 0 .5em; border-radius: 999px; background: var(--teal-pale); font-weight: 400; vertical-align: 1px; }
.ep-sub { margin-bottom: 10px; }
@media (max-width: 600px) {
  .ep-media-box { width: auto; height: 48px; }
  .ep-media-count { display: block; width: fit-content; margin: 2px 0 0; }
}
/* スマホは横並びの小さな行にして、2列で一度に多く見せる */
@media (max-width: 600px) {
  .ep-sub { font-size: .82rem; line-height: 1.5; }
  .ep-media-card { flex-direction: row; align-items: center; gap: 8px; padding: 8px 6px; min-height: 58px; box-sizing: border-box; }
  .ep-media-box { flex: 0 0 34px; width: 34px; height: 42px; background: none; }
  .ep-media-label { font-size: .8rem; line-height: 1.3; }
  .ep-media-size { font-size: .7rem; }
  .ep-media-count { display: none; }
}
.ep-media-size { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 入口は3列のカード（2026-10-07 村松さん指示）。上に用紙の形、下に名前・寸法・用途。スマホは2列 */
.ep-media { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ep-media-card { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; height: 100%; box-sizing: border-box; }
.ep-media-box { flex: 0 0 auto; width: auto; height: 132px; margin: 0; border-radius: 0; background: linear-gradient(160deg, #f3f6f8, #e8eef2); }
.ep-media-card:hover .ep-media-box { background: linear-gradient(160deg, #eaf5f6, #dcecef); }
.ep-media-text { padding: 12px 14px 14px; gap: 3px; }
.ep-media-label { font-size: 1.02rem; }
.ep-media-count { display: inline-block; }
.ep-media-size { white-space: normal; overflow: visible; }
.ep-media-uses { display: block; margin: 2px 0 0; font-size: .82rem; color: var(--ink, #333); }
@media (max-width: 860px) {
  .ep-media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 600px) {
  .ep-media-card { flex-direction: column; padding: 0; min-height: 0; }
  .ep-media-box { flex: 0 0 auto; width: auto; height: 84px; background: linear-gradient(160deg, #f3f6f8, #e8eef2); }
  .ep-media-text { padding: 8px 10px 10px; }
  .ep-media-label { font-size: .84rem; }
  .ep-media-uses { display: none; }
  .ep-media-count { display: inline-block; font-size: .7rem; margin: 3px 0 0; }
}
/* ゆったり・すっきり見せる（2026-10-07 村松さん指示：文字の大きさや隙間に余裕を持たせて、スタイリッシュに使いやすく） */
.ep-title { font-size: clamp(1.7rem, 3.2vw, 2.3rem); letter-spacing: .04em; margin: 14px 0 6px; }
.ep-sub { font-size: 1rem; margin: 0 0 30px; color: var(--sub); }
.ep-media { gap: 22px; margin-bottom: 8px; }
.ep-media > li.ep-media-group { font-size: .82rem; letter-spacing: .18em; color: var(--teal-dark); border: 0; padding: 0 0 0 12px; margin: 26px 0 0; position: relative; }
.ep-media > li.ep-media-group::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 3px; border-radius: 2px; background: var(--teal); }
.ep-media > li.ep-media-group:first-child { margin-top: 0; }
.ep-media-card { border-radius: 14px; box-shadow: 0 1px 2px rgba(8, 31, 50, .06), 0 4px 16px rgba(8, 31, 50, .05); border: 1px solid rgba(8, 31, 50, .06); }
.ep-media-card:hover { box-shadow: 0 14px 32px rgba(8, 31, 50, .13); border-color: rgba(1, 124, 136, .35); }
.ep-media-box { height: 168px; background: linear-gradient(160deg, #f5f8fa, #e9eff3); }
/* 用紙の形：枠の中に収まる大きさにそろえる（横長は幅、縦長は高さで決める） */
.ep-media-box .ep-media-shape { max-width: 64%; max-height: 72%; border-width: 1.5px; border-color: #b7c3cc; background-color: #fff; box-shadow: 0 6px 16px rgba(8, 31, 50, .10); border-radius: 3px; }
.ep-media-box .ep-media-shape.ep-media-sns { border-color: rgba(1, 124, 136, .55); border-radius: 10px; }
.ep-media-box .ep-shape-a4l, .ep-media-box .ep-shape-meishi, .ep-media-box .ep-shape-sns1080, .ep-media-box .ep-shape-a4tri_out, .ep-media-box .ep-shape-a4tri_in, .ep-media-box .ep-shape-line_rich { width: 64%; height: auto; }
.ep-media-box .ep-shape-a4p, .ep-media-box .ep-shape-a5p, .ep-media-box .ep-shape-b5p, .ep-media-box .ep-shape-a3p, .ep-media-box .ep-shape-hagaki, .ep-media-box .ep-shape-sns4x5, .ep-media-box .ep-shape-story { height: 72%; width: auto; }
.ep-media-card:hover .ep-media-shape { border-color: var(--teal); }
.ep-media-text { padding: 18px 20px 20px; gap: 6px; }
.ep-media-label { font-size: 1.12rem; letter-spacing: .03em; line-height: 1.45; }
.ep-media-count { font-size: .74rem; padding: 1px 9px; margin-left: .6em; color: var(--teal-dark); }
.ep-media-size { font-size: .82rem; letter-spacing: .04em; color: var(--sub); }
.ep-media-uses { font-size: .9rem; line-height: 1.6; margin-top: 2px; }
.ep-media-head { font-size: .82rem; letter-spacing: .18em; color: var(--teal-dark); border: 0; margin: 40px 0 14px; padding-left: 12px; position: relative; }
.ep-media-head::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 3px; border-radius: 2px; background: var(--teal); }
.ep-custom { border-radius: 14px; padding: 22px 24px 12px; box-shadow: 0 1px 2px rgba(8, 31, 50, .06), 0 4px 16px rgba(8, 31, 50, .05); }
.ep-all { margin: 28px 0 0; }
.ep-notes { margin-top: 56px; border-radius: 14px; }
@media (max-width: 860px) {
  .ep-media { gap: 14px; }
}
@media (max-width: 600px) {
  .ep-title { font-size: 1.45rem; }
  .ep-sub { font-size: .88rem; margin-bottom: 20px; }
  .ep-media { gap: 12px; }
  .ep-media-card { border-radius: 12px; }
  .ep-media-box { height: 104px; }
  .ep-media-text { padding: 10px 12px 12px; gap: 3px; }
  .ep-media-label { font-size: .9rem; }
  .ep-media-size { font-size: .72rem; }
  .ep-media-count { display: inline-block; margin: 2px 0 0; }
}
.ep > .ep-title:first-of-type { margin-top: 28px; }
.ep-sub { margin-top: 26px; }

.ep-image-start { margin: 20px 0 28px; padding: 24px; border: 1px solid #c1d9de; border-radius: 12px; background: linear-gradient(120deg, #edf7f6, #f4f6ff); }
.ep-image-start h2 { margin: 0 0 8px; }
.ep-image-eyebrow { color: var(--teal-dark); font-weight: 700; margin: 0 0 4px; }
.ep-image-sizes { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.ep-image-start .muted { font-size: .85rem; margin-bottom: 0; }
@media (max-width: 480px) { .ep-image-start { padding: 16px; } .ep-image-sizes { display: grid; } }

.ep-card-search { padding: 18px; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ep-card-search form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.ep-card-search label { flex: 1 1 260px; display: grid; gap: 4px; }
.ep-card-search input[type=search] { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.ep-card-search .chips { margin: 12px 0; }
.ep-card-search .muted { margin-bottom: 0; font-size: .85rem; }
.ep-grid .ep-thumb.ep-thumb-meishi { aspect-ratio: 91 / 55; padding: 10px; background: #e7edf2; }
.ep-grid .ep-thumb.ep-thumb-meishi img { width: 100%; max-height: 100%; object-fit: contain; }
