/* トップページ（portfolio/index.html）のスタイル */

:root {
  --bg: #fbfaf7;
  --surface: #f3f1ec;
  --surface-2: #e6e3dc;
  --text: #161614;
  --muted: #6b6862;
  --line: #e3e0d9;
  --accent: #f04e1f;
  --accent-soft: rgba(240, 78, 31, 0.08);
  --font-en: "Space Grotesk", "Noto Sans JP", sans-serif;
  --font-ja: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --header-h: 64px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  line-height: 1.8;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase; /* 日本語を文節で折り返す（Chrome / Edge） */
}
p, h1, h2, h3, h4, li { text-wrap: pretty; } /* 最後の行に1〜2文字だけ残るのを防ぐ */
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.en { font-family: var(--font-en); }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--font-en); font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: 0.01em; }
.logo span { color: var(--accent); }
.site-nav { display: flex; gap: 28px; font-family: var(--font-en); font-size: 0.85rem; letter-spacing: 0.12em; }
.site-nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.site-nav a:hover { color: var(--text); }
.site-nav a.site-nav__cta { color: var(--accent); }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 40px;
  overflow: hidden;
  isolation: isolate;
}
/* 方眼と、右上の光 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 60vmax;
  height: 60vmax;
  right: -20vmax;
  top: -25vmax;
  background: radial-gradient(circle, rgba(240, 78, 31, 0.16), transparent 60%);
}
.hero__eyebrow { font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.3em; color: var(--muted); margin-bottom: 12px; }
.hero__eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--accent); vertical-align: 1px; animation: blink 1.6s steps(1) infinite; }
.hero__name {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(4.6rem, 19vw, 15rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hero__x { display: inline-block; color: var(--accent); }
.hero__x.is-pop { animation: pop 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.hero__x.is-wait { opacity: 0; transform: scale(0.3); }
.hero__reading { margin-top: 18px; font-size: 0.9rem; letter-spacing: 0.3em; color: var(--muted); }
.hero__tagline { margin-top: 6px; font-weight: 900; font-size: clamp(1.5rem, 4.4vw, 2.8rem); line-height: 1.35; letter-spacing: 0.04em; }
.hero__tagline em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: 18px; max-width: 46em; color: var(--muted); }

/* ボタン */
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
/* モニター募集のお知らせ（2026-11-02） */
.notice { margin-top: 20px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent-soft); color: var(--text); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.notice:hover { background: var(--accent); color: #fff; }
.notice__tag { padding: 2px 8px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 0.75rem; }

/* お知らせ（ヒーローの右。2026-11-27） */
.hero__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 40px 56px; align-items: start; }
.news { margin-top: 24px; padding: 22px 24px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(2px); }
.news__head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.news__en { font-family: var(--font-en); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.02em; }
.news__en span { color: var(--accent); }
.news__ja { font-size: 0.8rem; color: var(--muted); }
.news__list { list-style: none; margin: 0; padding: 0; }
.news__list li + li { border-top: 1px dashed var(--line); }
.news__list a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 0; color: var(--text); text-decoration: none; }
.news__list time { font-family: var(--font-en); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }
.news__tag { font-size: 0.68rem; color: var(--muted); border: 1px solid currentColor; border-radius: 999px; padding: 0 8px; }
.news__tag--new { color: var(--accent); }
.news__title { flex-basis: 100%; font-size: 0.9rem; line-height: 1.5; }
.news__list a:hover .news__title { color: var(--accent); }
@media (max-width: 1000px) {
  .hero__body { grid-template-columns: 1fr; gap: 0; }
  .news { margin-top: 32px; }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #d8431a; }
.btn--ghost { border-color: var(--text); color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* 0 → 1 → x */
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: 20px 20px 4px 0; position: relative; }
.step + .step { padding-left: 20px; border-left: 1px solid var(--line); }
.step__num { font-family: var(--font-en); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; }
.step:last-child .step__num { color: var(--accent); }
.step__label { margin-top: 8px; font-weight: 700; font-size: 0.95rem; }
.step__text { font-size: 0.82rem; color: var(--muted); line-height: 1.7; }

/* ===== 流れる帯 ===== */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-en); font-weight: 700; font-size: clamp(1.1rem, 2.6vw, 1.6rem); letter-spacing: 0.08em; padding: 14px 28px; white-space: nowrap; color: var(--muted); }
.marquee__track span:nth-child(odd) { color: var(--text); }
.marquee__track span::after {   /* 区切りの ✳：記号だと iPhone で絵文字に なるので、線で 描く（2026-12-03） */
  content: ""; display: inline-block; width: 0.78em; height: 0.78em; margin-left: 56px; vertical-align: -0.06em; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 2.5v19M2.5 12h19M5.3 5.3l13.4 13.4M18.7 5.3L5.3 18.7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 2.5v19M2.5 12h19M5.3 5.3l13.4 13.4M18.7 5.3L5.3 18.7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

/* ===== セクション共通 ===== */
.section { padding: 112px 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 48px; }
.section__en { font-family: var(--font-en); font-weight: 700; font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1; letter-spacing: -0.03em; }
.section__en span { color: var(--accent); }
.section__ja { margin-top: 10px; font-size: 0.9rem; color: var(--muted); letter-spacing: 0.15em; }
.section__desc { max-width: 28em; color: var(--muted); font-size: 0.92rem; }

/* ===== できること ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color 0.3s, transform 0.3s;
}
.service:hover { border-color: var(--accent); transform: translateY(-4px); }
.service, .work { box-shadow: 0 1px 2px rgba(22, 22, 20, 0.04); }
.service__no { font-family: var(--font-en); font-weight: 700; font-size: 0.85rem; color: var(--accent); letter-spacing: 0.15em; }
.service__icon { width: 52px; height: 52px; margin: 20px 0; color: var(--text); }
.service h3 { font-size: 1.35rem; font-weight: 900; line-height: 1.4; }
.service__en { font-family: var(--font-en); font-size: 0.78rem; letter-spacing: 0.15em; color: var(--muted); margin-top: 2px; }
.service p { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.service ul { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 0.85rem; }
.service li::before { content: "→"; margin-right: 8px; color: var(--accent); font-family: var(--font-en); }
.service__link { margin-top: auto; padding-top: 24px; font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--muted); text-decoration: none; }
.service__link:hover { color: var(--accent); }

.ai-note {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 20px 28px;
  border-radius: 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(240, 78, 31, 0.3);
}
.ai-note strong { font-family: var(--font-en); font-size: 0.85rem; letter-spacing: 0.15em; color: var(--accent); }
.ai-note p { font-size: 0.92rem; }

/* ===== 作品一覧 ===== */
.works { background: var(--surface); border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: inherit;
  font-family: var(--font-ja);
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
}
.filters button:hover { border-color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters .count { margin-left: 6px; font-family: var(--font-en); font-size: 0.75rem; opacity: 0.75; }

/* お店用とオリジナルを枠で分ける（2026-11-27） */
.category { margin-top: 40px; padding: 28px 28px 32px; border: 1px solid var(--surface-2); border-radius: 24px; background: rgba(255, 255, 255, 0.45); }
.category[hidden] { display: none; }
.category__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 24px; padding: 0 0 16px 14px; border-bottom: 1px solid var(--surface-2); position: relative; }
.category__head::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 4px; height: 1.2em; border-radius: 2px; background: var(--accent); }
.category__head h3 { font-family: var(--font-en); font-size: 1.5rem; letter-spacing: 0.02em; text-decoration: underline 3px var(--accent); text-underline-offset: 6px; }
.category__head p { font-size: 0.85rem; color: var(--muted); }
/* Ko-fi のボタン（Original の見出しの右。2026-11-27） */
.kofi-btn { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border: 1.5px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 0.85rem; font-weight: 700; text-decoration: none; transition: background 0.2s, color 0.2s; }
.kofi-btn svg { width: 18px; height: 18px; flex: none; }
.kofi-btn:hover { background: var(--accent); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.work[hidden] { display: none; }
/* オリジナルのページ送り（2026-11-27） */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 24px; }
.pager button { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); font-family: var(--font-en); font-size: 0.95rem; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.pager button:hover { border-color: var(--accent); }
.pager button[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.work.is-slide-l { animation: slide-in-l 0.35s ease-out; }
.work.is-slide-r { animation: slide-in-r 0.35s ease-out; }
@keyframes slide-in-l { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slide-in-r { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.work {
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, border-color 0.25s;
}
a.work:hover { transform: translateY(-4px); border-color: var(--accent); }
.work img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.work img.img--wide { aspect-ratio: 16 / 9; }
.work img.img--tall { aspect-ratio: 2 / 3; }
.work img.img--menu { aspect-ratio: 3 / 2; }
.work__body { padding: 18px 22px 22px; }
.work__tag { display: inline-block; font-size: 0.72rem; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 0 10px; margin-bottom: 8px; }
.work h4 { font-size: 1.05rem; margin-bottom: 4px; }
.work p { font-size: 0.86rem; color: var(--muted); }

.work--soon { display: grid; place-items: center; min-height: 220px; border-style: dashed; background: transparent; text-align: center; color: var(--muted); }
.work--soon strong { display: block; font-family: var(--font-en); font-size: 0.85rem; letter-spacing: 0.25em; color: var(--text); }
.work--soon span { font-size: 0.85rem; }

/* 拡大表示 */
.lightbox { padding: 0; border: none; background: transparent; max-width: min(1280px, 100vw - 32px); overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.lightbox img { display: block; width: 100%; height: auto; max-height: calc(100vh - 64px); object-fit: contain; border-radius: 8px; }
.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #222;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ===== お問い合わせ ===== */
.contact__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.contact__lead { margin-top: 28px; color: var(--muted); }
.contact__points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.contact__points li::before { content: "→"; margin-right: 8px; color: var(--accent); font-family: var(--font-en); }
.monitor { margin-top: 28px; padding: 24px 20px; border: 2px solid var(--accent); border-radius: 16px; background: var(--accent-soft); }
.monitor__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.monitor__tag { padding: 4px 10px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 700; }
.monitor__left { font-size: 0.85rem; font-weight: 700; }
.monitor__left strong { margin: 0 2px; font-family: var(--font-en); font-size: 1.6rem; color: var(--accent); vertical-align: -2px; }
.monitor__title { margin-top: 14px; font-size: 1.3rem; font-weight: 900; line-height: 1.5; }
.monitor__title em { font-style: normal; color: var(--accent); }
.monitor__text { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.monitor__box { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--bg); }
.monitor__label { font-size: 0.85rem; font-weight: 700; }
.monitor__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; font-size: 0.9rem; line-height: 1.6; }
.monitor__list li { position: relative; padding-left: 26px; }
.monitor__list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 18px; text-align: center; }
.monitor__note { margin-top: 12px; font-size: 0.8rem; color: var(--muted); }
.monitor__btn { margin-top: 16px; width: 100%; justify-content: center; }
.contact__sns { margin-top: 32px; padding-top: 24px; border-top: 1px dashed var(--line); }
.contact__sns p { margin: 0 0 12px; font-size: 0.85rem; color: var(--muted); }

/* ===== SNS（お問い合わせ・フッター） ===== */
.sns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sns svg { width: 18px; height: 18px; flex: none; }
.sns__link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); font-family: var(--font-en); font-weight: 700; font-size: 0.85rem; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.sns__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: 50%; color: var(--text); transition: border-color 0.2s, color 0.2s; }
.sns__link:hover,
.sns__icon:hover { border-color: var(--accent); color: var(--accent); }
.sns__id { font-family: var(--font-en); font-size: 0.85rem; color: var(--muted); }
.site-footer__sns { margin-top: 28px; }

.contact-form,
.contact-thanks {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { margin: 0 0 22px; padding: 0; border: none; min-width: 0; }
.field--half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label,
.field legend { display: block; padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 0.9rem; }
.req,
.opt { margin-left: 8px; padding: 1px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; vertical-align: 1px; }
.req { background: var(--accent); color: #fff; }
.opt { background: var(--surface-2); color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* iOS のズーム防止 */
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field ::placeholder { color: #a8a49d; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; margin: 0 !important; font-weight: 500 !important; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 0.88rem; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.chip:hover span { border-color: var(--muted); }
.chip input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }

.contact-form__error { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); color: #b23511; font-size: 0.88rem; }
.contact-form__note { margin-top: 12px; text-align: center; font-size: 0.78rem; color: var(--muted); }

.contact-thanks { text-align: center; padding: 56px 36px; }
.contact-thanks__en { font-family: var(--font-en); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; margin-bottom: 18px; }
.contact-thanks__en span { color: var(--accent); }

/* ===== フッター ===== */
.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--line); }
.site-footer__big { font-family: var(--font-en); font-weight: 700; font-size: clamp(3rem, 12vw, 8rem); line-height: 1; letter-spacing: -0.04em; color: var(--surface-2); }
.site-footer__big span { color: rgba(240, 78, 31, 0.35); }
.site-footer__meta { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.78rem; color: var(--muted); }

/* ===== スクロールで表示 ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes pop { from { opacity: 0; transform: scale(0.3) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0.2; } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .hero__eyebrow::before { animation: none; }
  .hero__x.is-pop { animation: none; }
  .work.is-slide-l, .work.is-slide-r { animation: none; }
}

/* ===== タブレット・スマホ ===== */
@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; gap: 32px; }
  .contact__intro { position: static; }
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .category { padding: 20px 14px 24px; border-radius: 18px; }
  .site-nav { gap: 12px; font-size: 0.7rem; letter-spacing: 0.06em; }
  .hero__actions .btn { flex: 1 1 auto; }
  .contact-form, .contact-thanks { padding: 24px 18px; }
  .field--half { grid-template-columns: 1fr; gap: 22px; }
  .hero { min-height: auto; padding: 56px 0 32px; }
  .steps { grid-template-columns: 1fr; margin-top: 36px; }
  .step, .step + .step { padding: 16px 0; border-left: none; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 0 12px; align-items: baseline; }
  .step__num { grid-row: span 2; }
  .step__label { margin-top: 0; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 32px; }
  .service { padding: 28px 22px 24px; }
  .ai-note { padding: 18px 20px; }
  .grid { grid-template-columns: 1fr; }
}

/* 文中のリンク */
.text-link { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.text-link::after { content: " →"; font-family: var(--font-en); }

/* メニューが4つあるので、とても狭い画面では詰める */
@media (max-width: 400px) {
  .site-nav { gap: 9px; font-size: 0.64rem; letter-spacing: 0.03em; }
}
