/* ぽこぽこデザイン 共通スタイル */
:root {
  --bg: #FFFCF5;
  --ink: #2B2622;
  --ink-2: #3A332D;
  --muted: #5A5047;
  --accent: #B8361F;
  --cream: #FFF0C2;
  --line-soft: #EADFCB;
  --yellow: #FFC93C;
  --blue: #5B9BFF;
  --orange: #FF7A59;
  --green: #7ED6A8;
  --white: #FFFFFF;
  --focus: #2F6BFF;
  --font-head: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --font-body: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: #8A2414; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 252, 245, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--line-soft);
}
.site-header .wrap {
  padding-top: 12px; padding-bottom: 12px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 4px 0;
  color: var(--ink); text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo span { font-family: var(--font-head); font-weight: 900; font-size: 1.25rem; letter-spacing: 0.04em; }
.logo-mark circle { transition: transform .3s; }
.logo:hover .logo-mark circle:nth-child(2) { transform: translateY(-3px); }
.logo:hover .logo-mark circle:nth-child(3) { transform: translateY(-6px); }

.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center;
  font-size: 0.95rem; font-weight: 700; color: var(--ink-2); text-decoration: none;
  border-radius: 999px; min-height: 44px; padding: 0 18px;
  transition: background .2s, transform .2s;
}
.nav a:hover { background: var(--cream); color: var(--ink-2); transform: translateY(-2px); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* スマホ幅: メニューを1行に収める */
@media (max-width: 560px) {
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; gap: 4px; }
  .logo { min-height: 40px; }
  .nav { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 2px; }
  .nav a { font-size: 0.82rem; padding: 0 9px; white-space: nowrap; }
}

/* ---------- ボタン ---------- */
.pill-btn, .ghost-btn {
  font: inherit; font-weight: 700; text-decoration: none;
  border-radius: 999px; display: inline-flex; align-items: center; gap: 10px;
  transition: transform .2s; cursor: pointer;
}
.pill-btn { font-size: 1rem; color: var(--bg); background: var(--ink); border: none; min-height: 52px; padding: 0 28px; }
.pill-btn:hover { color: var(--bg); transform: translateY(-3px) rotate(-1.5deg); }
.ghost-btn { font-size: 0.95rem; color: var(--ink); background: var(--white); border: 2px solid var(--ink); min-height: 48px; padding: 0 22px; gap: 8px; }
.ghost-btn:hover { color: var(--ink); transform: translateY(-3px) rotate(1.5deg); }

/* ---------- 見出し ---------- */
.eyebrow { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--accent); letter-spacing: 0.12em; }
.sec-title { margin: 4px 0 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.4; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }

/* ---------- ヒーロー ---------- */
.hero {
  padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 112px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
}
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; position: relative; z-index: 1; }
.badge { margin: 0; align-self: flex-start; font-size: 0.9rem; font-weight: 700; background: var(--cream); padding: 6px 16px; border-radius: 999px; }
.hero h1 { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(2.1rem, 6vw, 4.4rem); line-height: 1.3; letter-spacing: 0.02em; }
.nw { white-space: nowrap; }
.marker { background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 4px; }
.lead { margin: 0; font-size: 1.05rem; color: var(--muted); max-width: 30em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { flex: 1 1 320px; min-width: 0; position: relative; height: clamp(280px, 34vw, 420px); }
.dot { position: absolute; aspect-ratio: 1; border-radius: 50%; }
.dot-face { left: 8%; top: 8%; width: 58%; background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.dot-face svg { width: 56%; height: auto; }
.dot-blue { right: 4%; top: 2%; width: 26%; background: var(--blue); }
.dot-orange { right: 10%; bottom: 6%; width: 36%; background: var(--orange); }
.dot-green { left: 2%; bottom: 4%; width: 14%; background: var(--green); }
.dot-ring { left: 52%; bottom: 30%; width: 9%; border: 4px solid var(--ink); }

.bob { animation: bob 4s ease-in-out infinite; }
.bob2 { animation: bob 5.5s ease-in-out infinite .8s; }
.bob3 { animation: bob 6.5s ease-in-out infinite 1.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* 顔をクリックすると「ぽこっ」と跳ねる */
.dot-face { cursor: pointer; border: none; padding: 0; font: inherit; }
.dot-face.is-poko { animation: poko .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes poko {
  0% { transform: scale(1); }
  30% { transform: scale(1.12, .9); }
  60% { transform: scale(.94, 1.08) translateY(-10px); }
  100% { transform: scale(1); }
}

/* ---------- 作品 ---------- */
.works-band { background: var(--white); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.works-band .wrap, .stack-sec { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 36px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 14px; transition: transform .25s; }
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card:nth-child(2n):hover { transform: translateY(-6px) rotate(1deg); }
.thumb { aspect-ratio: 4 / 3; border: 2px solid var(--ink); border-radius: 24px; overflow: hidden; background: var(--cream); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.04); }
.card-cat { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.card-title { margin: 2px 0 0; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; line-height: 1.5; }

/* ---------- できること ---------- */
.service {
  background: var(--white); border: 2px solid var(--ink); border-radius: 28px;
  padding: 32px 28px; display: flex; flex-direction: column; gap: 14px;
}
.service .icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.service h3 { margin: 0; font-family: var(--font-head); font-size: 1.3rem; font-weight: 900; }
.service p { margin: 0; color: var(--muted); }
.bg-yellow { background: var(--yellow); }
.bg-blue { background: var(--blue); }
.bg-orange { background: var(--orange); }

/* ---------- 自己紹介 ---------- */
.about-sec { padding-bottom: clamp(64px, 9vw, 112px); }
.about-box {
  background: var(--cream); border: 2px solid var(--ink); border-radius: 36px;
  padding: clamp(32px, 5vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px;
  position: relative; overflow: hidden;
}
.about-box::after {
  content: ""; position: absolute; right: -60px; bottom: -60px;
  width: 220px; height: 220px; border-radius: 50%; background: var(--yellow);
}
.avatar {
  flex: 0 0 auto; width: 160px; height: 160px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--ink); overflow: hidden; position: relative; z-index: 1;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.about-text h2 { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.45; }
.about-text p.body { margin: 0; color: var(--ink-2); }

/* ---------- フッター ---------- */
.site-footer { border-top: 2px dashed var(--line-soft); }
.site-footer .wrap {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 0.85rem; color: var(--muted);
}
.foot-brand { display: flex; align-items: center; gap: 8px; }
.foot-links { display: flex; gap: 16px; }

/* ---------- 下層ページ共通 ---------- */
.page-head { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 10px; }
.page-head h1 { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.35; }
.page-head .lead { max-width: 34em; }
.page-body { padding-bottom: clamp(64px, 9vw, 112px); display: flex; flex-direction: column; gap: 48px; }
.center-row { display: flex; justify-content: center; }
.card-desc { margin: 4px 0 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- できることページ ---------- */
.service-list { display: flex; flex-direction: column; gap: 24px; }
.service-row {
  background: var(--white); border: 2px solid var(--ink); border-radius: 32px;
  padding: clamp(28px, 4vw, 44px);
  display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start;
}
.service-row .icon { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.service-row .detail { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.service-row .num { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.service-row h2 { margin: 0; font-family: var(--font-head); font-size: clamp(1.35rem, 2.6vw, 1.6rem); font-weight: 900; line-height: 1.4; }
.service-row p { margin: 0; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 0.85rem; font-weight: 700; background: var(--cream); border-radius: 999px; padding: 4px 14px; }
.cta-box {
  background: var(--cream); border: 2px solid var(--ink); border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.cta-box p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }

/* ---------- わたしについてページ ---------- */
.profile { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.profile-photo { flex: 1 1 240px; max-width: 340px; position: relative; aspect-ratio: 1; }
.profile-photo::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); }
.profile-photo img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: cover; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); }
.profile-photo .dot-blue { right: -4%; top: 4%; width: 22%; }
.profile-photo .dot-orange { left: -2%; right: auto; bottom: 6%; width: 16%; }
.profile-text { flex: 999 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.profile-text h2 { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.45; }
.profile-text p { margin: 0; font-size: 1.05rem; color: var(--ink-2); }
.profile-text .catch { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.contact-box {
  background: var(--cream); border: 2px solid var(--ink); border-radius: 36px;
  padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 24px;
}
.contact-box h2 { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.45; }
.contact-box p { margin: 0; color: var(--ink-2); }
.contact-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 24px;
  border-radius: 20px; background: var(--white); border: 2px solid var(--ink);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; transition: transform .2s;
}
.contact-link:hover { color: var(--ink); transform: translateY(-3px) rotate(-1deg); }
.contact-link .sns-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.contact-link .label { flex: 1 1 auto; }

/* ---------- ページの切り替えをふわっとつなぐ（View Transitions） ---------- */
/* 対応ブラウザだけで効く。対応していないブラウザでは、ふつうに切り替わる */
@view-transition { navigation: auto; }

/* ヘッダーは動かさず、その下の中身だけが入れ替わるように見せる */
.site-header { view-transition-name: site-header; }

::view-transition-old(root) {
  animation: vt-fade-out .35s cubic-bezier(.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: vt-fade-in .55s cubic-bezier(.22, .61, .36, 1) .1s both;
}
@keyframes vt-fade-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-fade-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 下からふわっと出す（reveal.js が .fx を付ける） ---------- */
.fx { opacity: 0; transform: translateY(18px); }
.fx.fx-in { opacity: 1; transform: none; transition: opacity 1.4s cubic-bezier(.22, .61, .36, 1), transform 1.4s cubic-bezier(.22, .61, .36, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bob, .bob2, .bob3, .dot-face.is-poko { animation: none; }
  .card, .pill-btn, .ghost-btn, .nav a, .thumb img { transition: none; }
  .fx { opacity: 1; transform: none; transition: none; }
  /* 動きを減らす設定の人には、ページ切り替えの動きも付けない */
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- ご依頼の受付状況（_worker.js が答えた時だけ出る） ---------- */
.status { margin: 0; align-self: flex-start; display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 700; color: var(--ink-2); background: var(--white); border: 2px solid var(--line-soft); padding: 8px 16px; border-radius: 999px; }
.status::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.status.is-off::before { background: var(--muted); }
.status[hidden] { display: none; }
