/* Jimdo の雰囲気に寄せる: 白地、青緑の見出し、1 カラム最大 1100px。760px 未満はスマホ向けの形にする。
   単一の明るいテーマ（作品の見え方をそろえるため、意図して暗色版を作らない） */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #2b3438;
  --muted: #5f6d73;
  --teal: #6592a7;
  --teal-deep: #3f6b80;
  --wash: #f1f5f7;
  --rule: #dce5e9;
  --paper: #f7f4ee;
  --note-bg: #fbf3e4;
  --note-ink: #7a5520;
  --font-display: "Kelly Slab", "Noto Sans JP", Georgia, serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --wrap: 1100px;
}
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.8; }
a { color: var(--teal-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; line-height: 1.35; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 760px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.preview-note { background: var(--note-bg); color: var(--note-ink); font-size: 12px; line-height: 1.6; }
.preview-note .wrap { padding-block: 8px; }

/* ヘッダ: スマホは 1 行に詰め、PC はキャッチまで大きく見せる */
.site-header .wrap { padding-block: 16px 12px; display: grid; gap: 2px; }
.site-name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: 0.04em; color: var(--teal); }
.catch { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; }
.catch-en { margin: 0; font-family: var(--font-display); font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }
.status { justify-self: start; margin-top: 8px; font-size: 12px; padding: 1px 10px; border: 1px solid var(--teal); border-radius: 999px; color: var(--teal-deep); }
@media (min-width: 760px) {
  .site-header .wrap { padding-block: 40px 20px; gap: 6px; }
  .site-name { font-size: 44px; }
  .catch { font-size: 19px; letter-spacing: 0.08em; }
  .catch-en { font-size: 14px; }
  .status { font-size: 13px; padding: 2px 12px; margin-top: 10px; }
}

/* メニュー: スマホは 5 項目を幅いっぱいに均等に並べ、文字の大きさを幅に合わせる。PC は左から並べる */
.site-nav { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.site-nav ul { list-style: none; margin: 0 auto; padding-block: 0; display: flex; justify-content: space-between; gap: 4px; white-space: nowrap; }
.site-nav a { display: block; padding-block: 11px; text-decoration: none; color: var(--ink); font-size: clamp(10px, 3.4vw, 14px); letter-spacing: 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { color: var(--teal-deep); border-bottom-color: var(--teal); }
@media (min-width: 760px) {
  .site-nav { position: static; }
  .site-nav ul { justify-content: flex-start; gap: 4px 28px; flex-wrap: wrap; }
  .site-nav a { padding-block: 12px; font-size: 15px; letter-spacing: 0.06em; }
}

main .wrap { padding-block: 24px 40px; }
@media (min-width: 760px) { main .wrap { padding-block: 40px 64px; } }
.view { display: grid; gap: 36px; }
@media (min-width: 760px) { .view { gap: 48px; } }
.view h2 { margin: 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.view h3 { margin: 0; font-size: 16px; font-weight: 500; }
@media (min-width: 760px) { .view h2, .view h3 { font-size: 17px; } }
.section { display: grid; gap: 16px; }
@media (min-width: 760px) { .section { gap: 20px; } }
.lead { margin: 0; max-width: 40em; color: var(--muted); font-size: 15px; }
.prose { max-width: 40em; display: grid; gap: 12px; font-size: 15px; }
.prose p { margin: 0; }
@media (min-width: 760px) { .lead, .prose { font-size: 16px; } }

.pending { display: inline-block; font-size: 11px; line-height: 1.6; padding: 0 7px; border-radius: 4px; background: var(--note-bg); color: var(--note-ink); vertical-align: 2px; margin-left: 6px; font-weight: 400; letter-spacing: 0; }

/* 仮の作品画像: 水彩紙に色をにじませた枠 */
.art { position: relative; aspect-ratio: 4 / 3; width: 100%; max-width: 100%; background:
    radial-gradient(ellipse 55% 45% at var(--x1, 35%) var(--y1, 45%), var(--c1, rgba(101,146,167,.55)), transparent 70%),
    radial-gradient(ellipse 45% 40% at var(--x2, 68%) var(--y2, 60%), var(--c2, rgba(190,120,88,.38)), transparent 70%),
    radial-gradient(ellipse 70% 30% at 50% 85%, rgba(80,90,95,.16), transparent 70%),
    var(--paper);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.art::after { content: "作品画像（仮）"; position: absolute; right: 8px; bottom: 6px; font-size: 10px; color: rgba(43,52,56,.55); letter-spacing: 0.08em; }
.art.v2 { --c1: rgba(214,72,60,.42); --c2: rgba(70,95,140,.34); --x1: 42%; --y1: 55%; }
.art.v3 { --c1: rgba(220,175,60,.45); --c2: rgba(60,120,110,.32); --x1: 60%; --y1: 40%; --x2: 30%; --y2: 65%; }
.art.v4 { --c1: rgba(40,60,80,.40); --c2: rgba(170,190,200,.5); --x2: 55%; }
.art.v5 { --c1: rgba(120,160,90,.40); --c2: rgba(200,140,70,.36); --x1: 30%; --y1: 60%; }
.art.v6 { --c1: rgba(150,80,110,.35); --c2: rgba(101,146,167,.45); --x2: 40%; --y2: 40%; }

.work { display: grid; gap: 6px; align-content: start; align-self: start; text-decoration: none; color: inherit; min-width: 0; }
.work .title { font-size: 14px; font-weight: 500; line-height: 1.5; }
.work .meta { font-size: 12px; color: var(--muted); line-height: 1.5; }
.work:hover .title { color: var(--teal-deep); }
@media (min-width: 760px) { .work { gap: 8px; } .work .title { font-size: 15px; } .work .meta { font-size: 13px; } }

/* 代表作: スマホは 1 枚目を大きく、残りを横にすべらせる。PC は大 1 + 小 2 */
.featured { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.featured .work:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .featured { gap: 28px; grid-template-columns: 2fr 1fr; }
  .featured .work:first-child { grid-column: auto; grid-row: span 2; }
}

.entrances { display: grid; gap: 10px; }
.entrance { display: grid; gap: 2px; padding: 16px 18px; background: var(--wash); text-decoration: none; color: var(--ink); }
.entrance strong { font-weight: 500; color: var(--teal-deep); font-size: 16px; }
.entrance span { font-size: 13px; color: var(--muted); }
@media (min-width: 760px) { .entrances { grid-template-columns: 1fr 1fr; gap: 16px; } .entrance { padding: 20px 22px; } .entrance strong { font-size: 17px; } .entrance span { font-size: 14px; } }

.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filters span { flex: none; font-size: 12px; padding: 2px 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--muted); }
.filters span:first-child { border-color: var(--teal); color: var(--teal-deep); }
/* ギャラリー: スマホは 2 列で多く見せる。PC は 3 列 */
.grid { display: grid; gap: 20px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .grid { gap: 32px 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.detail { display: grid; gap: 20px; }
.detail .art { margin-left: -16px; margin-right: -16px; width: calc(100% + 32px); max-width: none; }
@media (min-width: 760px) {
  .detail { grid-template-columns: 3fr 2fr; gap: 32px; align-items: start; }
  .detail .art { margin: 0; width: 100%; max-width: 100%; }
}
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }
.button { display: inline-block; justify-self: start; padding: 10px 22px; background: var(--teal-deep); color: #fff; text-decoration: none; letter-spacing: 0.06em; font-size: 15px; border: 0; font-family: inherit; cursor: pointer; }
.button:hover { background: var(--teal); }

/* 依頼の流れ: スマホは縦の線でつなぐ。PC は横に 4 つ並べる */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 2px; padding: 0 0 18px 22px; border-left: 2px solid var(--teal); position: relative; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::after { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--teal); }
.steps li::before { content: "STEP " counter(step); font-family: var(--font-display); font-size: 12px; color: var(--teal-deep); letter-spacing: 0.08em; }
.steps strong { font-weight: 500; }
.steps span { font-size: 14px; color: var(--muted); }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .steps li { padding: 12px 0 0; border-left: 0; border-top: 2px solid var(--teal); }
  .steps li:last-child { border-top-color: var(--teal); }
  .steps li::after { display: none; }
  .steps li::before { font-size: 13px; }
}

.delivery { display: grid; gap: 10px; }
.delivery div { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border: 1px solid var(--rule); }
.delivery p { margin: 0; font-size: 14px; color: var(--muted); }
@media (min-width: 760px) { .delivery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .delivery div { padding: 18px 20px; } }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; max-width: 40em; font-size: 14px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 500; color: var(--muted); white-space: nowrap; }

form { display: grid; gap: 14px; max-width: 34em; }
label { display: grid; gap: 4px; font-size: 14px; }
input, select, textarea { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); width: 100%; }
textarea { min-height: 8em; resize: vertical; }
.form-msg { margin: 0; font-size: 14px; color: var(--teal-deep); }

/* スマホだけ: 画面の下に依頼への入口を出しておく */
.cta-bar { position: sticky; bottom: 0; z-index: 5; background: rgba(255,255,255,.96); border-top: 1px solid var(--rule); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.cta-bar span { font-size: 12px; color: var(--muted); min-width: 0; }
.cta-bar .button { padding: 8px 16px; font-size: 14px; flex: none; }
@media (min-width: 760px) { .cta-bar { display: none; } }

.site-footer { border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.site-footer .wrap { padding-block: 16px 20px; display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; }
@media (min-width: 760px) { .site-footer { font-size: 13px; } .site-footer .wrap { padding-block: 20px 28px; } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
.work picture, .work img, .detail picture, .detail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); }
.detail img { object-fit: contain; }
.detail picture { margin-left: -16px; margin-right: -16px; width: calc(100% + 32px); }
@media (min-width: 760px) { .detail picture { margin: 0; width: 100%; } }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.links a { color: var(--muted); }
.contact-note { margin: 0; font-size: 14px; color: var(--muted); }
.contact-note code { font-size: 14px; }
.page-title { margin: 0; font-size: 19px; font-weight: 500; color: var(--teal); letter-spacing: 0.06em; text-wrap: balance; }
@media (min-width: 760px) { .page-title { font-size: 22px; } }
.status-closed { border-color: var(--muted); color: var(--muted); }
/* タブレットの縦向きなど（560〜759px）: メニューは左から並べる。幅いっぱいに広げると項目の間が開きすぎるため。
   560px 未満で左寄せにすると、Noto Sans JP の全角 24 文字と項目の間 28px が幅に収まらない */
@media (min-width: 560px) and (max-width: 759px) {
  .site-nav ul { justify-content: flex-start; gap: 28px; }
  .site-nav a { font-size: 14px; letter-spacing: 0.04em; }
}
/* お問い合わせの Google フォーム。フォームの中で縦に動かさずに済むよう、高さを取っておく */
.form-frame { max-width: 40em; }
.form-frame iframe { display: block; width: 100%; height: 1400px; border: 1px solid var(--rule); background: var(--bg); }
@media (min-width: 760px) { .form-frame iframe { height: 1200px; } }
/* 外部リンクはヘッダに置く（ヨシュア、2026-10-25）。スマホは受付状況の下に並べ、PC は右上に寄せる */
.header-links { margin-top: 2px; font-size: 13px; }
.header-links a { color: var(--teal-deep); }
@media (min-width: 760px) {
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .site-header .wrap > :not(.header-links) { grid-column: 1; }
  .header-links { grid-column: 2; grid-row: 1; align-self: start; justify-content: flex-end; margin-top: 12px; font-size: 14px; }
}
/* CMS の長い文: 段落の中の改行をそのまま見せる */
.prose .pre { white-space: pre-line; }
/* 自己紹介の写真: スマホは文の上、PC は左に置く */
.about-intro { display: grid; gap: 16px; }
.about-photo { max-width: 240px; }
.about-photo img { width: 100%; height: auto; }
@media (min-width: 760px) { .about-intro.has-photo { grid-template-columns: 280px 1fr; gap: 32px; align-items: start; } .about-photo { max-width: none; } }
