/* =========================================================
   やつめろん portfolio — common styles
   色・フォントはここの :root だけ書き換えれば全体に反映されます
   ========================================================= */
:root {
  --bg: #fbfaf6;            /* オフホワイト */
  --bg-soft: #f3f6f1;
  --surface: #ffffff;
  --text: #333333;          /* チャコールグレー */
  --text-sub: #6b6f6c;
  --line: #e4e7e2;
  --mint: #5fc4a2;          /* メロンミント */
  --mint-deep: #2f9a7a;
  --mint-pale: #e3f5ee;
  --accent: #e5506d;        /* ピンク寄りの赤（ボタン・強調のみ） */
  --accent-deep: #c93a57;

  --font-head: fot-tsukuaoldmin-pr6n, "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-body: fot-cezanne-pron, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;

  --header-h: 60px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(60, 80, 70, .08);
  --shadow-hover: 0 12px 32px rgba(60, 80, 70, .14);
  --wrap: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 16px; } }
img, video, iframe { display: block; max-width: 100%; }
a { color: var(--mint-deep); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 300; line-height: 1.5; margin: 0; letter-spacing: .08em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 画像保護（完全には防げません） ---------- */
.protect img, img.protect {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-user-drag: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251, 250, 246, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--font-head); font-size: 20px; letter-spacing: .14em;
  color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.logo-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-pale), 0 0 14px var(--mint); }
.nav-list { list-style: none; display: flex; gap: 32px; }
.nav-list a {
  color: var(--text); text-decoration: none; font-size: 14px; letter-spacing: .12em;
  position: relative; padding: 6px 0;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--mint); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list .nav-cta a { color: var(--accent); }
.nav-list .nav-cta a::after { background: var(--accent); }

.menu-btn { display: none; }
@media (max-width: 767px) {
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    content: ""; display: block; width: 22px; height: 1.5px; background: var(--text); border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .menu-btn span { position: relative; }
  .menu-btn span::before { position: absolute; top: -7px; }
  .menu-btn span::after { position: absolute; top: 7px; }
  .menu-open .menu-btn span { background: transparent; }
  .menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h));
    background: rgba(251, 250, 246, .97);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: 0; padding: 24px 24px; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding: 18px 4px; font-size: 18px; font-family: var(--font-head); }
  .nav-list a::after { display: none; }
  body.menu-open { overflow: hidden; }
}

main { padding-top: var(--header-h); display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-family: var(--font-body); font-size: 15px; letter-spacing: .1em; text-decoration: none;
  border: 1px solid var(--text); color: var(--text); background: transparent; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(229, 80, 109, .28); }
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn-mint { background: var(--mint); border-color: var(--mint); color: #fff; }
.btn-mint:hover { background: var(--mint-deep); border-color: var(--mint-deep); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 13px; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Section / headings ---------- */
.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .en {
  display: block; font-family: var(--font-body); font-size: 12px; letter-spacing: .3em;
  color: var(--mint-deep); text-transform: uppercase; margin-bottom: 6px;
}
.section-head h2 { font-size: 26px; }
@media (min-width: 768px) { .section-head h2 { font-size: 32px; } }

.page-head { padding: 56px 0 24px; text-align: center; position: relative; }
.page-head h1 { font-family: var(--font-body); font-size: 30px; letter-spacing: .2em; font-weight: 400; }
.page-head .ja { display: block; font-size: 13px; color: var(--text-sub); letter-spacing: .2em; margin-top: 4px; }
.page-head::before {
  content: ""; position: absolute; left: 50%; top: 30px; width: 220px; height: 120px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--mint-pale), transparent); z-index: -1; filter: blur(6px);
}
@media (min-width: 768px) { .page-head { padding: 88px 0 40px; } .page-head h1 { font-size: 40px; } }

/* ---------- Fade-in on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tabs (filter) ---------- */
.tabs {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 0 auto 32px; padding: 0; list-style: none;
}
@media (max-width: 400px) { .tab { font-size: 13px; padding: 0 12px; } }
@media (min-width: 768px) { .tabs { gap: 10px; } .tab { padding: 0 20px; } }
.tab {
  min-height: 40px; padding: 0 14px; white-space: nowrap; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 14px; letter-spacing: .08em; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.tab:hover { border-color: var(--mint); }
.tab[aria-selected="true"] { background: var(--mint); border-color: var(--mint); color: #fff; }
.tab .count { font-size: 11px; opacity: .7; margin-left: 4px; }

/* ---------- Tiles (masonry, JS で列に振り分け) ---------- */
.masonry { display: flex; gap: 10px; align-items: flex-start; }
.masonry-col { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 768px) { .masonry, .masonry-col { gap: 18px; } }
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 10px; overflow: hidden; background: var(--bg-soft);
  box-shadow: var(--shadow); transition: box-shadow .35s, transform .35s var(--ease);
  animation: tileIn .6s var(--ease) both;
}
.tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.tile img { width: 100%; height: auto; transition: transform .6s var(--ease), filter .6s; }
.tile:hover img { transform: scale(1.03); filter: brightness(1.04) saturate(1.05); }
.tile.is-video img { aspect-ratio: 16 / 9; object-fit: cover; }
.tile.is-vertical img { aspect-ratio: 9 / 16; object-fit: cover; }
.tile-cap {
  position: absolute; inset: auto 0 0 0; padding: 28px 12px 10px; text-align: left;
  font-size: 12px; line-height: 1.5; color: #fff; letter-spacing: .05em;
  background: linear-gradient(transparent, rgba(30, 40, 36, .55));
  opacity: 0; transition: opacity .3s;
}
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; }
@media (hover: none) { .tile-cap { display: none; } }
@keyframes tileIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.play {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(255, 255, 255, .88); box-shadow: 0 0 0 6px rgba(255, 255, 255, .28), 0 4px 18px rgba(0, 0, 0, .15);
  display: grid; place-items: center; pointer-events: none; transition: transform .3s var(--ease);
}
.play::before { content: ""; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--accent); }
.tile:hover .play, .work-thumb:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.empty { text-align: center; color: var(--text-sub); padding: 48px 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(250, 250, 246, .96); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; padding: 56px 12px 16px;
  touch-action: pan-y;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-stage { position: relative; width: 100%; max-width: 1200px; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: var(--shadow); }
.lb-video { width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; max-height: 100%; }
.lb-video.is-vertical { max-width: min(420px, 100%); aspect-ratio: 9 / 16; height: 100%; width: auto; }
.lb-video iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; background: #000; }
.lb-info { text-align: center; padding: 14px 8px 4px; max-width: 760px; }
.lb-title { font-family: var(--font-head); font-size: 17px; }
.lb-meta { font-size: 12px; color: var(--text-sub); letter-spacing: .1em; }
.lb-note { font-size: 13px; color: var(--text-sub); margin: 4px 0 0; }
.lb-btn {
  position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 20px; line-height: 1;
}
.lb-close { top: 8px; right: 12px; position: fixed; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); position: fixed; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (max-width: 767px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }
.lb-counter { position: fixed; top: 18px; left: 18px; font-size: 12px; color: var(--text-sub); letter-spacing: .1em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; padding: 48px 0 32px; border-top: 1px solid var(--line); text-align: center; background: var(--bg); }
.sns { display: flex; justify-content: center; gap: 12px; list-style: none; margin-bottom: 20px; }
.sns a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--text); background: var(--surface); transition: border-color .25s, color .25s, box-shadow .25s;
}
.sns a:hover { border-color: var(--mint); color: var(--mint-deep); box-shadow: 0 0 16px var(--mint-pale); }
.sns svg { width: 18px; height: 18px; }
.notice { font-size: 12px; color: var(--text-sub); margin-bottom: 6px; }
.copyright { font-size: 12px; color: var(--text-sub); letter-spacing: .1em; margin: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px);
  background: var(--text); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Home
   ========================================================= */
.hero { position: relative; height: calc(100svh - var(--header-h)); min-height: 520px; max-height: 1000px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
/* PCは視差で動かすぶん上下に少し余裕をもたせる */
@media (min-width: 768px) and (hover: hover) { .hero-media { inset: -6% 0; will-change: transform; } }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
/* ポスター＝動画の1フレーム目なので、フェードせず一瞬で切り替える（フェード中に動くと残像になる） */
.hero-media video { position: absolute; inset: 0; opacity: 0; }
.hero-media video.is-ready { opacity: 1; }
.hero-fade { position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-sparkles span {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; pointer-events: none;
  box-shadow: 0 0 10px 3px rgba(255, 255, 255, .9), 0 0 22px 6px rgba(160, 235, 210, .5);
  animation: float 9s ease-in-out infinite; opacity: 0;
}
@keyframes float {
  0% { opacity: 0; transform: translateY(20px) scale(.6); }
  30%, 70% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-60px) scale(1); }
}
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; padding: 0 16px; z-index: 2;
}
.hero-copy h1 {
  font-size: clamp(24px, 6.4vw, 48px); letter-spacing: .14em; line-height: 1.6;
  text-shadow: 0 0 24px rgba(255, 255, 255, .95), 0 0 6px rgba(255, 255, 255, .9);
}
.hero-copy h1 .line { display: inline-block; }
.hero-copy .sub {
  display: inline-block; margin-top: 12px; padding: 4px 16px; border-radius: 999px;
  font-size: 12px; letter-spacing: .24em; background: rgba(255, 255, 255, .78);
}
.hero-copy > * { animation: heroIn 1.4s var(--ease) both; }
.hero-copy .sub { animation-delay: .35s; }
/* Webフォントが届くまでコピーを出さない（フォントの切り替わりでチラつくため）。届いたら登場アニメを開始 */
.wf-loading .hero-copy > * { animation-play-state: paused; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.scroll-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2;
  width: 1px; height: 36px; background: linear-gradient(var(--text-sub), transparent); opacity: .5;
}

.about { display: grid; gap: 28px; align-items: center; justify-items: center; text-align: center; }
.about-icon {
  width: 132px; height: 132px; border-radius: 50%; overflow: hidden; position: relative;
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--line), 0 0 40px rgba(95, 196, 162, .35);
}
.about-icon img { width: 100%; height: 100%; object-fit: cover; }
.about-name { font-size: 26px; margin-bottom: 2px; }
.about-role { font-size: 13px; color: var(--mint-deep); letter-spacing: .16em; margin-bottom: 16px; }
.about-text { max-width: 34em; margin: 0 auto; text-align: left; line-height: 2.1; }
@media (min-width: 768px) {
  .about { grid-template-columns: auto 1fr; text-align: left; justify-items: start; gap: 56px; max-width: 860px; margin: 0 auto; }
  .about-icon { width: 180px; height: 180px; }
  .about-text { margin: 0; }
}

.pickup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 36px; }
@media (min-width: 768px) { .pickup-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pickup-grid .tile img { aspect-ratio: 4 / 5; object-fit: cover; }
.pickup-grid .tile.is-video img { aspect-ratio: 4 / 5; }

.status-band { background: linear-gradient(120deg, var(--mint-pale), #fdf1f3); }
.status-box { text-align: center; }
.status-label {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .2em; color: var(--mint-deep); margin-bottom: 10px;
}
.status-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(95, 196, 162, .25); animation: pulse 2.4s infinite; }
.status-label.is-closed { color: var(--text-sub); }
.status-label.is-closed::before { background: var(--text-sub); box-shadow: none; animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(95, 196, 162, 0); } }
.status-text { font-family: var(--font-head); font-size: clamp(18px, 4.6vw, 26px); margin-bottom: 24px; }

/* =========================================================
   Works
   ========================================================= */
.works-grid { display: grid; gap: 28px 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .works-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card { animation: tileIn .6s var(--ease) both; }
.work-thumb {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow);
  transition: box-shadow .35s, transform .35s var(--ease);
}
.work-thumb:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .6s var(--ease); }
.work-thumb:hover img { transform: scale(1.03); }
.work-body { padding: 12px 2px 0; }
.work-title { font-family: var(--font-head); font-size: 17px; line-height: 1.6; margin-bottom: 2px; }
.work-client { font-size: 13px; color: var(--text-sub); margin-bottom: 8px; }
.work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { font-size: 11px; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--mint-pale); color: var(--mint-deep); letter-spacing: .06em; }
.work-date { font-size: 12px; color: var(--text-sub); margin-left: auto; letter-spacing: .08em; }
.work-link { font-size: 12px; display: inline-block; margin-top: 6px; }
.works-more { margin-top: 48px; text-align: center; color: var(--text-sub); font-size: 13px; }

.cta-band { text-align: center; padding: 64px 16px; }
.cta-band p { color: var(--text-sub); font-size: 14px; }

/* =========================================================
   Contact
   ========================================================= */
.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 0 auto 48px; max-width: 760px;
}
.toc-title { font-size: 12px; letter-spacing: .24em; color: var(--mint-deep); margin-bottom: 8px; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; }
@media (min-width: 600px) { .toc ol { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 0; color: var(--text); text-decoration: none; font-size: 14px; border-bottom: 1px dashed var(--line); }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--mint); font-size: 12px; padding-top: 2px; }
.toc a:hover { color: var(--mint-deep); }

.c-section { padding: 40px 0; }
.c-section + .c-section { border-top: 1px solid var(--line); }
.c-h2 { font-size: 24px; margin-bottom: 24px; display: flex; align-items: baseline; gap: 12px; }
.c-h2 .num { font-family: var(--font-body); font-size: 13px; color: var(--mint-deep); letter-spacing: .1em; }
@media (min-width: 768px) { .c-section { padding: 64px 0; } .c-h2 { font-size: 28px; } }
.c-h3 {
  font-family: var(--font-body); font-weight: 400; font-size: 16px; letter-spacing: .1em;
  margin: 36px 0 14px; padding-left: 14px; border-left: 3px solid var(--mint);
}
.lead { font-size: 15px; line-height: 2.1; }
.note { font-size: 13px; color: var(--text-sub); line-height: 1.9; }
.dot-list { list-style: none; display: grid; gap: 6px; }
.dot-list li { position: relative; padding-left: 1.2em; }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

.status-card {
  background: linear-gradient(120deg, var(--mint-pale), #fdf1f3); border-radius: var(--radius); padding: 24px 22px; text-align: center;
}
.status-card .status-text { margin-bottom: 8px; font-size: clamp(17px, 4.4vw, 22px); line-height: 1.8; }
.status-updated { font-size: 12px; color: var(--text-sub); letter-spacing: .1em; margin: 0; }

.menu-cards { display: grid; gap: 16px; }
@media (min-width: 600px) { .menu-cards { grid-template-columns: 1fr 1fr; } }
.menu-card {
  display: block; position: relative; padding: 24px 22px 22px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: box-shadow .3s, transform .3s var(--ease), border-color .3s;
}
.menu-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--mint); }
.menu-card .tag { font-size: 11px; letter-spacing: .2em; color: var(--accent); }
.menu-card h3 { font-size: 21px; margin: 4px 0 6px; }
.menu-card p { font-size: 13px; color: var(--text-sub); margin: 0 0 12px; line-height: 1.8; }
.menu-card .price { font-family: var(--font-body); font-size: 15px; }
.menu-card .price strong { font-size: 22px; font-weight: 500; color: var(--text); }
.menu-card .go { position: absolute; right: 20px; bottom: 20px; color: var(--mint-deep); }

.samples { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .samples { grid-template-columns: 1fr 1fr; } }
.samples figure { margin: 0; }
.samples figcaption { font-size: 12px; color: var(--text-sub); margin-top: 6px; text-align: center; }
.samples .work-thumb img { object-position: center 20%; }

.price-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-weight: 400; width: 45%; }
.price-table td { text-align: right; font-feature-settings: "tnum"; white-space: nowrap; }
.price-table thead th { background: var(--mint-pale); font-size: 12px; letter-spacing: .14em; color: var(--mint-deep); }
.price-table thead th:last-child { text-align: right; }
.price-big {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-align: center; margin-bottom: 16px;
}
.price-big .label { font-size: 13px; color: var(--text-sub); }
.price-big .amount { font-size: 32px; font-weight: 500; letter-spacing: .04em; }
.price-big .amount small { font-size: 15px; }
.inc-grid { display: grid; gap: 12px; }
@media (min-width: 600px) { .inc-grid { grid-template-columns: 1fr 1fr; } }
.inc-box { border-radius: var(--radius); padding: 18px 20px; background: var(--bg-soft); font-size: 14px; }
.inc-box h4 { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: .1em; margin-bottom: 10px; color: var(--mint-deep); }
.inc-box.is-extra h4 { color: var(--accent); }
.inc-box.is-extra .dot-list li::before { background: var(--accent); }
@media (min-width: 600px) { .inc-grid .inc-box.is-extra { grid-column: 1 / -1; } }
.opt-list li:has(.opt-price) { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.opt-price { flex-shrink: 0; font-feature-settings: "tnum"; white-space: nowrap; }
.inc-box .opt-note { margin-top: 10px; }

/* フロー（スマホ縦／PC横） */
.flow { list-style: none; display: grid; gap: 0; counter-reset: flow; }
.flow li {
  counter-increment: flow; position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding-bottom: 20px;
}
.flow li::before {
  content: counter(flow); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--mint); color: var(--mint-deep); font-size: 16px; position: relative; z-index: 1;
}
.flow li:last-child::before { background: var(--mint); color: #fff; }
.flow li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--mint-pale); }
.flow li:last-child::after { display: none; }
.flow .step-title { font-size: 15px; padding-top: 9px; line-height: 1.6; }
.flow .step-desc { font-size: 12px; color: var(--text-sub); line-height: 1.7; margin-top: 2px; }
@media (min-width: 900px) {
  .flow { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .flow li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0 4px; gap: 10px; }
  .flow li::after { left: calc(50% + 22px); right: calc(-50% + 22px); top: 21px; bottom: auto; width: auto; height: 2px; }
  .flow .step-title { padding-top: 0; font-size: 14px; }
}
/* 工程が多いフローはPCでも縦並び */
@media (min-width: 900px) {
  .flow.flow-vertical { grid-auto-flow: row; }
  .flow.flow-vertical li { grid-template-columns: 44px 1fr; justify-items: start; text-align: left; padding: 0 0 20px; gap: 14px; }
  .flow.flow-vertical li::after { left: 21px; right: auto; top: 44px; bottom: 0; width: 2px; height: auto; }
  .flow.flow-vertical .step-title { padding-top: 9px; font-size: 15px; }
}

.caution { list-style: none; display: grid; gap: 10px; counter-reset: cau; }
.caution li { counter-increment: cau; display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 14px 16px; background: var(--surface); border-radius: 10px; border: 1px solid var(--line); font-size: 14px; line-height: 1.8; }
.caution li::before { content: counter(cau); font-size: 12px; color: var(--accent); padding-top: 2px; }

.template-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
.template-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--bg-soft); font-size: 13px; }
.template-head .btn { flex-shrink: 0; white-space: nowrap; }
.template-box pre {
  margin: 0; padding: 16px; font-family: var(--font-body); font-size: 13px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; color: var(--text-sub);
}

.contact-grid { display: grid; gap: 14px; }
.contact-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; }
.contact-item .label { font-size: 12px; letter-spacing: .2em; color: var(--mint-deep); }
.contact-item .value { font-size: 16px; word-break: break-all; }
.contact-item .btn-row { justify-content: flex-start; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.thanks { text-align: center; padding: 40px 0 0; font-size: 14px; color: var(--text-sub); line-height: 2.1; }

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-sparkles { display: none; }
}

.intro { text-align: left; }
@media (min-width: 768px) { .intro { text-align: center; } }

/* ---------- キービジュアル：スマホではキャラクター側（右寄り）を見せる ---------- */
@media (max-width: 767px) {
  .hero-media img, .hero-media video { object-position: 84% center; }
}

/* ---------- ミニキャラ ---------- */
.mini-chara {
  display: block; width: 96px; height: auto; margin: 0 auto 8px;
  filter: drop-shadow(0 6px 12px rgba(60, 80, 70, .15));
  animation: bob 3.2s ease-in-out infinite;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.mini-thanks { margin-top: 32px; }
@media (min-width: 768px) { .mini-chara { width: 120px; } }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-2deg); } }
