/* =========================================================
   Noriko Minoura ポートフォリオ
   コンセプト：「ちょっと困った」を片づける（整理された机）＋ 猫
   ========================================================= */

/* ===== 写真（猫の写真・イラストは images/ に置く） ===== */
.img { background-color: #e6dfd2; background-size: cover; background-position: center; }
.img-avatar { background-image: url("images/avatar.jpg"); background-size: 175%; background-position: 50% 22%; }
.img-cat    { background-image: url("images/cat.jpg"); background-position: 55% 40%; }

/* ===== 基本設定 ===== */
:root {
  --paper: #f4f1ea;
  --white: #fcfaf6;
  --ink: #1d1b18;
  --sub: #6d675e;
  --line: rgba(29, 27, 24, 0.13);
  --rule: rgba(29, 27, 24, 0.07);
  --amber: #d99a26;
  --amber-soft: rgba(217, 154, 38, 0.42);
  --en: "Poppins", sans-serif;
  --ja: "Zen Kaku Gothic New", sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* 猫の足あとカーソル */
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 28 28'%3E%3Cg fill='%231d1b18'%3E%3Cellipse cx='14' cy='18.5' rx='6' ry='5'/%3E%3Ccircle cx='7' cy='11' r='2.5'/%3E%3Ccircle cx='11.8' cy='6.8' r='2.5'/%3E%3Ccircle cx='16.6' cy='6.8' r='2.5'/%3E%3Ccircle cx='21' cy='11' r='2.5'/%3E%3C/g%3E%3C/svg%3E") 13 13;
  --paw-amber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 28 28'%3E%3Cg fill='%23d99a26'%3E%3Cellipse cx='14' cy='18.5' rx='6' ry='5'/%3E%3Ccircle cx='7' cy='11' r='2.5'/%3E%3Ccircle cx='11.8' cy='6.8' r='2.5'/%3E%3Ccircle cx='16.6' cy='6.8' r='2.5'/%3E%3Ccircle cx='21' cy='11' r='2.5'/%3E%3C/g%3E%3C/svg%3E") 13 13;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ja);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: var(--paw), auto; }
  a, button, label, input[type="checkbox"], [role="tab"] { cursor: var(--paw-amber), pointer; }
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
mark { color: inherit; background: linear-gradient(transparent 62%, var(--amber-soft) 62%); }
::selection { background: var(--amber-soft); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }

.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 16px; background: var(--ink); color: var(--white); font-size: 13px; transform: translateY(-200%); transition: transform 0.3s; }
.skip:focus { transform: none; }

.section { position: relative; padding: clamp(104px, 12vw, 168px) var(--gutter); }
.container { max-width: 1200px; margin: 0 auto; }

.sec-head { margin-bottom: clamp(48px, 6vw, 80px); }
.sec-en { display: flex; align-items: baseline; gap: 12px; font-family: var(--en); font-weight: 500; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sub); }
.sec-en span { font-weight: 600; letter-spacing: 0; color: var(--amber); }
.sec-title { margin-top: 18px; font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.5; letter-spacing: 0.03em; }
.sec-lead { margin-top: 24px; color: var(--sub); }

/* 共通のチェックボックス */
.box { position: relative; flex: 0 0 22px; width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 6px; transition: background-color 0.3s; }
.box::after { content: ""; position: absolute; left: 6px; top: 1.5px; width: 6.5px; height: 12px; border-right: 2.5px solid var(--white); border-bottom: 2.5px solid var(--white); transform: rotate(45deg) scale(0); transition: transform 0.45s var(--ease-out); }
.is-done .box,
.check-list .is-in .box { background: var(--ink); }
.is-done .box::after,
.check-list .is-in .box::after { transform: rotate(45deg) scale(1); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 17px 30px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--ja);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: background-color 0.3s;
}
.btn span { transition: transform 0.4s var(--ease-out); }
.btn:hover { background: #3a3631; }
.btn:hover span { transform: translateX(6px); }
.link-line { position: relative; font-size: 14px; font-weight: 500; padding-bottom: 2px; }
.link-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform 0.5s var(--ease-out); }
.link-line:hover::after { transform: scaleX(0.3); }

/* ===== 画面の端からのぞく猫 ===== */
.peek-cat { position: fixed; right: -8px; bottom: 120px; z-index: 40; width: 84px; transform: translateX(100%); transition: transform 0.9s var(--ease-out); pointer-events: none; }
.peek-cat.is-peek { transform: translateX(18%); pointer-events: auto; cursor: pointer; }
.peek-cat.is-shy { transform: translateX(110%) !important; transition: transform 0.25s cubic-bezier(0.5, 0, 0.75, 0); }
.peek-say { position: fixed; right: 16px; bottom: 200px; z-index: 41; padding: 6px 12px; border-radius: 12px; background: var(--ink); color: var(--white); font-size: 12px; pointer-events: none; animation: pop-out 1.2s var(--ease-out) forwards; }
@keyframes pop-out { 0% { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }

/* 背景をクリックすると押される足あと */
.paw-stamp { position: absolute; z-index: 30; width: 26px; height: 26px; margin: -13px 0 0 -13px; pointer-events: none; animation: stamp 1.6s var(--ease-out) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(var(--r)) scale(1.6); } 15% { opacity: 0.9; transform: rotate(var(--r)) scale(1); } 70% { opacity: 0.7; } 100% { opacity: 0; transform: rotate(var(--r)) scale(1); } }
.eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }

/* ===== ヘッダー ===== */
.header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); transition: padding 0.5s var(--ease), background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.6s var(--ease-out); }
.header.is-scrolled { padding-block: 14px; background: rgba(244, 241, 234, 0.9); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.header.is-hidden { transform: translateY(-100%); }
.logo { font-family: var(--en); font-weight: 600; font-size: 19px; letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a { position: relative; font-family: var(--en); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 10px 22px; border-radius: 999px; background: var(--ink); color: var(--white); transition: background-color 0.3s; }
.nav-cta:hover { background: #3a3631; }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border: none; background: none; color: var(--ink); }
.menu-btn span { position: absolute; left: 10px; width: 24px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ===== ファーストビュー（罫線ノート） ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  padding: 120px var(--gutter) 80px;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px);
  background-size: 100% 36px;
  background-position: 0 18px;
}
.hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) - 24px); width: 1px; background: rgba(217, 154, 38, 0.35); }
.hero-role { font-family: var(--en); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sub); }
.hero-title { margin-top: 24px; font-weight: 700; font-size: clamp(32px, 4.3vw, 64px); line-height: 1.42; letter-spacing: 0.02em; }
.hero-title mark { background-size: 0% 100%; background-repeat: no-repeat; background-image: linear-gradient(transparent 62%, var(--amber-soft) 62%); background-color: transparent; transition: background-size 1.2s var(--ease-out) 0.9s; }
.is-loaded .hero-title mark { background-size: 100% 100%; }
.hero-lead { margin-top: 28px; color: var(--sub); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }

.todo-wrap { position: relative; padding-top: 70px; }
.cat-btn { position: absolute; top: 4px; right: 12%; z-index: 2; padding: 0; border: none; background: none; }
.sit-cat { display: block; width: 92px; transform-origin: 50% 100%; }
.cat-btn:hover .sit-cat { transform: translateY(-3px); transition: transform 0.3s var(--ease-out); }
.cat-btn.is-pet .sit-cat { animation: squish 0.5s var(--ease-out); }
@keyframes squish { 0% { transform: scale(1, 1); } 30% { transform: scale(1.12, 0.84); } 60% { transform: scale(0.95, 1.06); } 100% { transform: scale(1, 1); } }
.cat-say {
  position: absolute;
  top: -10px;
  right: calc(12% + 88px);
  z-index: 3;
  max-width: 220px;
  padding: 8px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(29, 27, 24, 0.08);
  font-size: 12px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transform-origin: 100% 100%;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: none;
}
.cat-say.is-show { opacity: 1; transform: none; }
.tail { transform-origin: 88px 96px; animation: tail 3.2s ease-in-out infinite; }
@keyframes tail { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-14deg); } }
.todo { position: relative; padding: clamp(24px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px rgba(29, 27, 24, 0.08); transform: rotate(-1.5deg); }
.todo-head { display: flex; justify-content: space-between; margin-bottom: 14px; font-family: var(--en); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sub); }
.todo li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; font-weight: 500; border-radius: 6px; transition: background-color 0.3s; }
.todo li:hover { background: rgba(217, 154, 38, 0.08); }
.todo li:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .todo li { cursor: var(--paw-amber), pointer; } }
.t { position: relative; transition: color 0.4s; }
.t::after { content: ""; position: absolute; left: 0; top: 54%; width: 100%; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.is-done .t { color: var(--sub); }
.is-done .t::after { transform: scaleX(1); }
.todo-foot { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-family: var(--en); font-size: 13px; }
.todo-foot b { margin-left: 8px; color: var(--amber); font-weight: 600; }
.todo-reset { padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-family: var(--ja); font-size: 11px; color: var(--sub); opacity: 0; pointer-events: none; transition: opacity 0.4s, background-color 0.3s; }
.todo.is-complete .todo-reset { opacity: 1; pointer-events: auto; }
.todo-reset:hover { background: var(--paper); color: var(--ink); }
.bubble { position: absolute; top: -18px; left: 14%; padding: 8px 14px; border-radius: 14px 14px 14px 4px; background: var(--ink); color: var(--white); font-size: 12px; opacity: 0; transform: translateY(8px) scale(0.9); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.todo.is-complete .bubble { opacity: 1; transform: none; }

.js .hero-role,
.js .hero-lead,
.js .hero-actions,
.js .todo-wrap { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .hero-title { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease-out) 0.15s, transform 1s var(--ease-out) 0.15s; }
.is-loaded .hero-role,
.is-loaded .hero-title,
.is-loaded .hero-lead,
.is-loaded .hero-actions,
.is-loaded .todo-wrap { opacity: 1; transform: none; }
.is-loaded .hero-lead { transition-delay: 0.4s; }
.is-loaded .hero-actions { transition-delay: 0.55s; }
.is-loaded .todo-wrap { transition-delay: 0.3s; }

/* ===== こんなお悩み ===== */
.worries { background: var(--white); }
.worries-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.worries .sec-head { position: sticky; top: 120px; margin-bottom: 0; }
.check-list { border-top: 1px solid var(--line); }
.check-list li { display: flex; align-items: center; gap: 18px; padding: 24px 4px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.check-list li .box { transition-delay: 0.35s; }
.check-list li .box::after { transition-delay: 0.45s; }

/* ===== SERVICE（タブ付きのカード） ===== */
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding-top: 36px; }
.card { position: relative; display: flex; flex-direction: column; }
.card-tab { position: absolute; top: -34px; left: 0; padding: 6px 18px 10px; border: 1px solid var(--line); border-bottom: none; border-radius: 12px 12px 0 0; background: var(--white); font-family: var(--en); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sub); }
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 0 20px 20px 20px;
  background-color: var(--white);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.card:hover .card-body { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(29, 27, 24, 0.08); }
.card-num { font-family: var(--en); font-weight: 600; font-size: 34px; line-height: 1; color: var(--amber); }
.card h3 { margin-top: 16px; font-size: 20px; letter-spacing: 0.04em; }
.card-desc { margin-top: 10px; font-size: 14px; color: var(--sub); }
.items { margin-top: 22px; font-size: 14px; }
.items li { position: relative; padding-left: 26px; line-height: 2.25; }
.items li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 13px; height: 13px; border: 1.5px solid var(--ink); border-radius: 4px; }
.items li::after { content: ""; position: absolute; left: 4.5px; top: 0.82em; width: 4px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
.price { margin-top: auto; padding-top: 28px; }
.price-num { font-family: var(--en); font-weight: 600; font-size: 32px; line-height: 1.3; }
.price-num small { margin-left: 4px; font-family: var(--ja); font-weight: 500; font-size: 14px; }
.price-note { font-size: 12px; color: var(--sub); }
.card:nth-child(2) { transition-delay: 0.08s; }
.card:nth-child(3) { transition-delay: 0.16s; }

/* ===== FLOW ===== */
.flow { background: var(--white); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--line); }
.step { position: relative; padding-top: 32px; }
.step-check { position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform 0.5s var(--ease-out) 0.3s; }
.step.is-in .step-check { transform: scale(1); }
.step-num { font-family: var(--en); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.step h3 { margin-top: 6px; font-size: 18px; }
.step p:last-child { margin-top: 10px; font-size: 14px; color: var(--sub); }
.step:nth-child(2) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.2s; }
.step:nth-child(4) { transition-delay: 0.3s; }

/* ===== WORKS（ファイルのタブ） ===== */
.works-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.works-nav { display: flex; gap: 10px; }
.arrow { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); transition: background-color 0.3s, color 0.3s, opacity 0.3s; }
.arrow svg { width: 20px; height: 20px; }
.arrow:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.arrow:disabled { opacity: 0.25; }

.tabs { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { flex: 0 0 auto; padding: 12px 24px 14px; border: 1px solid var(--line); border-bottom: none; border-radius: 14px 14px 0 0; background: #e9e4da; color: var(--sub); font-family: var(--ja); font-size: 13px; font-weight: 500; transition: background-color 0.3s, color 0.3s; }
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--white); color: var(--ink); font-weight: 600; }
.sheets { position: relative; border: 1px solid var(--line); border-radius: 0 20px 20px 20px; background: var(--white); overflow: hidden; }
.sheet { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(24px, 3.6vw, 48px); }
.sheet[hidden] { display: none; }
.sheet.is-active { animation: sheet-in 0.7s var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sheet-thumb { display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 6 / 5; background: var(--paper); }
.sheet-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.sheet-thumb:hover img { transform: scale(1.03); }
.sheet-num { font-family: var(--en); font-weight: 600; font-size: 13px; color: var(--amber); }
.sheet h3, .biz-card h3 { margin-top: 6px; font-size: clamp(20px, 2vw, 26px); line-height: 1.5; }
.sheet h3 small { font-size: 0.62em; font-weight: 500; color: var(--sub); }
.sheet-cat { font-family: var(--en); font-size: 12px; color: var(--sub); }
.sheet-desc { margin-top: 16px; font-size: 14px; }
.role-title { margin-top: 20px; font-size: 12px; font-weight: 700; color: var(--sub); }
.role { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.role li { padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--sub); }
.btn-line { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 999px; font-family: var(--en); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; transition: background-color 0.3s, color 0.3s; }
.btn-line:hover { background: var(--ink); color: var(--white); }

/* 黒い点 */
.dots { display: flex; justify-content: center; gap: 14px; margin-top: 32px; }
.dot { width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%; background: var(--ink); opacity: 0.2; transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.dot:hover { opacity: 0.45; }
.dot[aria-current="true"] { opacity: 1; transform: scale(1.25); }

.biz { margin-top: clamp(72px, 8vw, 112px); }
.biz-label { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-family: var(--en); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.biz-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.biz-card { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: clamp(24px, 3vw, 48px); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.biz-card .sheet-desc { margin-top: 0; }
.biz-card .role { margin-top: 0; align-content: flex-start; }

/* ===== ABOUT ===== */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.profile { position: sticky; top: 120px; text-align: center; }
.avatar { width: min(240px, 100%); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; border: 1px solid var(--line); }
.name { margin-top: 18px; font-size: 18px; font-weight: 700; letter-spacing: 0.2em; }
.name span { display: block; font-family: var(--en); font-weight: 400; font-size: 12px; letter-spacing: 0.12em; color: var(--sub); }
.place { margin-top: 6px; font-size: 12px; color: var(--sub); }
.body p + p { margin-top: 1.2em; }
.body .quote { padding-left: 18px; border-left: 3px solid var(--amber); font-weight: 700; }
.about-sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.sub-en { margin-bottom: 18px; font-family: var(--en); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline li { position: relative; display: flex; flex-direction: column; padding-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 5px; background: var(--white); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: -18.5px; top: 8px; width: 5px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.timeline .when { font-weight: 700; font-size: 14px; }
.timeline .what { font-size: 13px; line-height: 1.8; color: var(--sub); }
.cat-photo { margin-bottom: 16px; }
.cat-photo .img { aspect-ratio: 4 / 5; border-radius: 14px; }
.cat-photo figcaption { margin-top: 8px; font-size: 12px; color: var(--sub); }
.private p { font-size: 14px; color: var(--sub); }

/* ===== CONTACT（メモ帳） ===== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.contact .sec-head { position: sticky; top: 120px; }
.memo {
  display: grid;
  gap: 22px;
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background-color: var(--white);
  box-shadow: 0 30px 60px rgba(29, 27, 24, 0.06);
}
.memo-head { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px dashed var(--line); font-family: var(--en); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sub); }
.memo label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.lbl { display: flex; align-items: center; }
.req { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--amber); color: var(--white); font-size: 10px; }
.memo input:not([type="checkbox"]),
.memo textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: inherit; font-weight: 400; color: var(--ink); transition: border-color 0.3s, background-color 0.3s; }
.memo input:focus,
.memo textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.memo textarea { resize: vertical; }
.memo .check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.memo .check input { width: 18px; height: 18px; accent-color: var(--ink); }
.memo .check a { text-decoration: underline; }
.memo .btn { justify-self: start; margin-top: 4px; }
.hp { display: none; }

/* ===== フッター ===== */
.footer { padding: 48px var(--gutter) 28px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; max-width: 1200px; margin: 0 auto; }
.footer-name { font-family: var(--en); font-weight: 600; font-size: 18px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-nav a { font-family: var(--en); font-size: 12px; letter-spacing: 0.12em; color: var(--sub); transition: color 0.3s; }
.footer-nav a:hover { color: var(--ink); }
.copy { max-width: 1200px; margin: 28px auto 0; font-family: var(--en); font-size: 11px; color: var(--sub); }
.footer { position: relative; padding-bottom: 104px; }
.sleep-cat { position: absolute; right: var(--gutter); bottom: 20px; width: 110px; }
.sleep-cat svg { display: block; width: 100%; animation: breathe 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes breathe { 50% { transform: scaleY(1.04); } }
.sleep-tail { transform-origin: 14px 60px; animation: tail-sleep 4s ease-in-out infinite; }
@keyframes tail-sleep { 50% { transform: rotate(10deg); } }
.z { position: absolute; right: 8px; top: 0; font-family: var(--en); font-weight: 500; color: var(--sub); opacity: 0; animation: zzz 3.6s ease-in-out infinite; }
.z1 { font-size: 11px; } .z2 { font-size: 14px; animation-delay: 1.2s; } .z3 { font-size: 17px; animation-delay: 2.4s; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -30px); } }

/* ===== スクロールで表示する演出 ===== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero-role, .js .hero-title, .js .hero-lead, .js .hero-actions, .js .todo-wrap { opacity: 1; transform: none; }
  .hero-title mark { background-size: 100% 100% !important; }
  .peek-cat { display: none; }
}

/* ===== タブレット ===== */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 112px; }
  .todo-wrap { max-width: 520px; width: 100%; }
  .worries-grid,
  .about-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .worries .sec-head,
  .contact .sec-head,
  .profile { position: static; }
  .service-list { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .biz-card { grid-template-columns: minmax(0, 1fr); }
}

/* ===== スマートフォン ===== */
@media (max-width: 768px) {
  :root { --gutter: 24px; }
  body { font-size: 14px; }
  .section { padding-block: 88px; }
  .header { padding: 16px var(--gutter); }
  .header.is-scrolled { padding-block: 10px; }
  .menu-btn { display: block; z-index: 2; }
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 20px; background: var(--paper); background-image: linear-gradient(var(--rule) 1px, transparent 1px); background-size: 100% 36px; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { font-size: 28px; font-weight: 600; letter-spacing: 0.04em; text-transform: none; }
  .nav a::after { display: none; }
  .nav-cta { margin-top: 12px; padding: 12px 36px; font-size: 20px !important; }
  .header.menu-open { background: transparent; box-shadow: none; backdrop-filter: none; }
  .hero::before { display: none; }
  /* FV：端まで詰まって見えないよう、余白と行間を広めにとる */
  .hero { gap: 56px; padding-top: 128px; padding-bottom: 72px; }
  .hero-role { font-size: 11px; letter-spacing: 0.12em; }
  /* 「その「ちょっと困った」、」（約12.3文字分）を1行に収め、右端に少しゆとりを残す */
  .hero-title { margin-top: 20px; font-size: min(32px, calc((100vw - var(--gutter) * 2) / 12.6)); line-height: 1.6; }
  .hero-lead { margin-top: 24px; }
  .hero-lead br { display: none; }
  .hero-actions { gap: 24px; margin-top: 36px; }
  .todo li { font-size: 15px; }
  .sit-cat { width: 76px; }
  /* ご依頼の流れ：左に小さな点と縦線を通すタイムライン */
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-left: 26px; }
  .steps::before { display: block; left: 3.5px; right: auto; top: 14px; bottom: 10px; width: 1px; height: auto; }
  .step { padding: 0 0 30px; }
  .step:last-child { padding-bottom: 0; }
  .step-check { left: -26px; top: 10px; width: 8px; height: 8px; }
  .works-head { flex-direction: column; align-items: flex-start; }
  .arrow { width: 46px; height: 46px; }
  .tabs { gap: 4px; }
  .tabs [role="tab"] { padding: 10px 11px 12px; font-size: 11.5px; letter-spacing: 0.02em; }
  .about-sub { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .peek-cat { width: 64px; bottom: 96px; }
  .sleep-cat { width: 84px; bottom: 16px; }
  .cat-say { right: 0; top: -42px; }
}

/* Netlifyが自動で差し込む「Powered by Netlify」バッジを隠す（無料プランは管理画面でオフにできない） */
#nl-badge-frame { display: none !important; }
