/* =========================================================
   万事屋まぐなす（運営: 合同会社Magnus / サイト上は非表示）
   デザインシステム: クリーム × ティール × テラコッタ / 丸ゴシック / 有機的な曲線
   ========================================================= */

:root {
  /* Brand palette */
  --cream:        #F5EFE3;  /* 背景（あたたかい生成り） */
  --cream-2:      #EFE7D7;  /* セクション交互 */
  --paper:        #FFFDF8;  /* カード面 */
  --ink:          #2B3A38;  /* 本文（ティール寄りの墨） */
  --ink-soft:     #566461;  /* 補助テキスト */
  --teal:         #2F5A54;  /* 主役（ロゴのティール） */
  --teal-dark:    #234642;
  --teal-soft:    #E4EDE9;  /* ティールの淡いタグ地 */
  --terra:        #D99A5C;  /* アクセント（テラコッタ） */
  --terra-dark:   #C47F3C;
  --sage:         #9DB5A6;  /* 有機的な線 */

  --radius:       18px;
  --radius-lg:    28px;
  --shadow:       0 10px 30px rgba(35, 70, 66, .08);
  --shadow-sm:    0 4px 14px rgba(35, 70, 66, .07);
  --maxw:         1080px;
  --ease:         cubic-bezier(.22, .61, .36, 1);

  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Quicksand", system-ui, sans-serif;
  --font-body:  "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--terra-dark); }
h1, h2, h3 { font-family: var(--font-round); font-weight: 700; line-height: 1.4; margin: 0; }

/* 日本語の改行を整える:
   .pb = フレーズ単位でまとめて折り返す(全ブラウザ) /
   auto-phrase = 文節改行(対応ブラウザのみ、非対応は無視される) */
.pb { display: inline-block; }
h1, h2, h3, h4, p, .lead { word-break: auto-phrase; }
.hero h1, .section h2 { text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- layout helpers ---------- */
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.section--alt { background: var(--cream-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-round); font-weight: 700; font-size: .82rem;
  color: var(--teal); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--terra); border-radius: 2px; }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--teal-dark); margin-bottom: 10px; }
.section .lead { color: var(--ink-soft); max-width: 42ch; margin-bottom: 44px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-round); font-weight: 700; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--teal); border-color: var(--sage); }
.btn--ghost:hover { color: var(--teal-dark); border-color: var(--teal); background: var(--paper); }
.btn--terra { background: var(--terra); color: #fff; }
.btn--terra:hover { background: var(--terra-dark); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 227, .82);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(157, 181, 166, .3);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-round); font-weight: 700; color: var(--teal-dark); }
.brand img { width: 40px; height: 40px; }
.brand b { font-size: 1.05rem; line-height: 1.2; }
.brand span { display: block; font-size: .68rem; color: var(--ink-soft); font-weight: 500; letter-spacing: .08em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--font-round); font-weight: 700; font-size: .92rem;
  color: var(--ink); padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.nav-links .btn { margin-left: 8px; padding: 9px 20px; }
/* ナビ内のCTAは常に白文字＋緑背景（.nav-links a の色/背景指定に負けないよう specificity を上げる） */
.nav-links a.btn--primary { color: #fff; background: linear-gradient(180deg, #35655F, var(--teal)); }
.nav-links a.btn--primary:hover { color: #fff; background: var(--teal-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--teal-dark); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle span + span { margin-top: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 7vw, 90px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-dark); color: #fff;
  font-family: var(--font-round); font-weight: 700; font-size: .82rem;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(35, 70, 66, .18);
}
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.35rem); color: var(--teal-dark); letter-spacing: .01em; }
.hero h1 .accent { color: var(--terra); }
.hero .sub { margin: 22px 0 12px; font-size: clamp(1rem, 2.2vw, 1.18rem); color: var(--ink); }
.hero .desc { color: var(--ink-soft); max-width: 46ch; margin: 24px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero visual: 工房イラスト + ブランドバッジ */
.hero-visual { position: relative; max-width: 420px; margin-left: auto; }
.hero-illust {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 0 0 6px rgba(255, 253, 248, .75);
  transform: rotate(1.2deg);
}
.hero-badge {
  position: absolute; left: -18px; bottom: 26px;
  /* 絶対配置の shrink-to-fit（親の残り幅まで）に潰されないよう内容幅で固定
     （iOS WebKit で背景ピルだけ狭くなり文字がはみ出す事故の防止） */
  width: max-content; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 253, 248, .92); backdrop-filter: blur(6px);
  border: 1px solid rgba(157, 181, 166, .35);
  border-radius: 999px; padding: 10px 22px 10px 12px;
  box-shadow: var(--shadow-sm); transform: rotate(-1deg);
}
.hero-badge img { width: 44px; height: 44px; border-radius: 50%; }
.hero-badge-text b { display: block; font-family: var(--font-round); font-size: 1rem; color: var(--teal-dark); line-height: 1.3; }
.hero-badge-text span { font-size: .8rem; color: var(--ink-soft); }
.chip {
  font-family: var(--font-round); font-weight: 700; font-size: .8rem;
  background: var(--cream-2); color: var(--teal-dark); padding: 6px 14px; border-radius: 999px;
}

/* organic background blobs */
.blob { position: absolute; z-index: -1; opacity: .5; pointer-events: none; }
.blob--1 { top: -60px; right: -80px; width: 340px; color: var(--sage); }
.blob--2 { bottom: -100px; left: -90px; width: 300px; color: var(--terra); opacity: .25; }

/* wave divider */
.wave { display: block; width: 100%; height: auto; color: var(--cream-2); }
.wave--flip { transform: scaleY(-1); }

/* ---------- feature / services cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(157, 181, 166, .18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal); margin-bottom: 16px;
}
.card .ico svg { width: 26px; height: 26px; }

/* スポットイラスト付きカード */
.card--illust { padding-top: 22px; }
.card-illust {
  margin: 0 0 18px; border-radius: 14px; overflow: hidden;
  aspect-ratio: 5 / 4; background: #FAF5EA;
  border: 1px solid rgba(157, 181, 166, .2);
}
.card-illust img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .45s var(--ease);
}
.card:hover .card-illust img { transform: scale(1.05); }
.card h3 { font-size: 1.15rem; color: var(--teal-dark); margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .95rem; }

/* value strip */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.value { display: flex; gap: 14px; align-items: flex-start; }
.value .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 8px; background: var(--terra); }
.value h4 { font-family: var(--font-round); color: var(--teal-dark); margin: 0 0 4px; font-size: 1.02rem; }
.value p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- products ---------- */
/* カテゴリ分け（TOOLS / MATERIALS）: デスクトップは左右2カラム */
.product-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.product-stack { display: grid; gap: 22px; }
.product-cat {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.05rem; color: var(--teal-dark); margin-bottom: 18px;
}
.cat-badge {
  font-family: var(--font-round); font-weight: 700; font-size: .72rem; letter-spacing: .12em;
  background: var(--teal); color: #fff; padding: 5px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.cat-badge--terra { background: var(--terra); }
.product-links { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.product { display: flex; flex-direction: column; }
.product .thumb {
  aspect-ratio: 16 / 10; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--teal-soft), var(--cream-2));
  display: grid; place-items: center; color: var(--teal); position: relative; overflow: hidden;
}
.product .thumb svg { width: 54px; height: 54px; opacity: .7; }
.product .thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .45s var(--ease);
}
.product:hover .thumb img { transform: scale(1.04); }
.product .tag { z-index: 1; box-shadow: 0 2px 8px rgba(35, 70, 66, .12); }
.product .tag {
  position: absolute; top: 12px; left: 12px; font-family: var(--font-round); font-weight: 700;
  font-size: .72rem; background: var(--paper); color: var(--teal-dark); padding: 4px 12px; border-radius: 999px;
}
.product h3 { font-size: 1.1rem; color: var(--teal-dark); margin-bottom: 6px; }
.product p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 14px; flex: 1; }

/* ---------- company table ---------- */
.company-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.company-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.company-table th, .company-table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid rgba(157, 181, 166, .22); font-size: .95rem; vertical-align: top; }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: 0; }
.company-table th { font-family: var(--font-round); color: var(--teal-dark); width: 38%; background: var(--teal-soft); font-weight: 700; }
.company-table td { color: var(--ink-soft); }
.todo { color: var(--terra-dark); font-style: normal; }

/* ---------- contact ---------- */
.contact-card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-round); font-weight: 700; color: var(--teal-dark); font-size: .9rem; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--sage);
  background: var(--cream); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47, 90, 84, .12); }
.field textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; } /* honeypot（bot対策） */
.form-note { color: var(--ink-soft); font-size: .82rem; margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-dark); color: #DCE7E3; padding: 56px 0 28px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand .brand b, .footer-brand .brand { color: #fff; }
.footer-brand .brand span { color: #A9C1BB; }
.footer-brand p { color: #A9C1BB; font-size: .9rem; margin-top: 14px; }
.footer-col h4 { font-family: var(--font-round); color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: #C6D6D1; font-size: .9rem; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .82rem; color: #A9C1BB; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.social a:hover { background: var(--terra); }
.social svg { width: 18px; height: 18px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- privacy / legal page ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--teal-dark); margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); font-size: .88rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.2rem; color: var(--teal-dark); margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.3em; }
.legal li { margin-bottom: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 40px; font-family: var(--font-round); font-weight: 700; }

/* =========================================================
   Blog(記事一覧 + 記事ページ)
   ========================================================= */
.blog-title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: var(--teal-dark); margin-bottom: 10px; }

/* ---- 一覧カード ---- */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; }
.post-card:hover { color: inherit; }
.post-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--teal-soft), var(--cream-2)); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.post-thumb--placeholder img { object-fit: contain; padding: 18%; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.post-card-body time { font-size: .8rem; color: var(--ink-soft); font-family: var(--font-round); font-weight: 700; }
.post-card-body h2 { font-size: 1.08rem; color: var(--teal-dark); line-height: 1.5; }
.post-card-body p { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags .chip { font-size: .72rem; padding: 3px 10px; }

/* ---- 記事ページ ---- */
.article { max-width: 720px; }
.article h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); color: var(--teal-dark); line-height: 1.5; margin-bottom: 14px; }
.article-back { margin-bottom: 18px; font-family: var(--font-round); font-weight: 700; font-size: .9rem; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--ink-soft); font-size: .88rem; margin-bottom: 26px; font-family: var(--font-round); font-weight: 700; }
.article-cover { margin: 0 0 28px; }
.article-cover img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pr-notice {
  background: var(--teal-soft); border-left: 4px solid var(--teal);
  padding: 12px 16px; border-radius: 0 12px 12px 0; font-size: .85rem;
  color: var(--ink-soft); margin-bottom: 26px;
}
.article-body { color: var(--ink); }
.article-body h2 {
  font-size: 1.35rem; color: var(--teal-dark); margin: 44px 0 14px;
  padding-bottom: 8px; border-bottom: 2px solid var(--teal-soft);
}
.article-body h2::after { display: none; }
.article-body h3 { font-size: 1.12rem; color: var(--teal-dark); margin: 32px 0 10px; }
.article-body p { margin: 0 0 1.2em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .35em; }
.article-body blockquote {
  margin: 0 0 1.2em; padding: 12px 18px; border-left: 4px solid var(--sage);
  background: var(--paper); border-radius: 0 12px 12px 0; color: var(--ink-soft);
}
.article-body hr { border: 0; height: 2px; background: var(--teal-soft); margin: 36px auto; width: 120px; border-radius: 2px; }
.article-body table { border-collapse: collapse; margin: 0 0 1.2em; width: 100%; background: var(--paper); border-radius: 12px; overflow: hidden; }
.article-body th, .article-body td { padding: 10px 14px; border-bottom: 1px solid rgba(157,181,166,.22); text-align: left; font-size: .92rem; }
.article-body th { background: var(--teal-soft); color: var(--teal-dark); font-family: var(--font-round); }
.article-body code { background: var(--cream-2); padding: 2px 7px; border-radius: 6px; font-size: .88em; }
.article-body pre { background: #2B3A38; color: #E8EFEA; padding: 18px 20px; border-radius: 12px; overflow-x: auto; margin: 0 0 1.2em; }
.article-body pre code { background: none; padding: 0; color: inherit; }

/* 文字装飾(記事用) */
mark { background: linear-gradient(transparent 55%, rgba(217,154,92,.45) 55%); color: inherit; padding: 0 2px; }
.t-large { font-size: 1.3em; font-weight: 700; }
.t-small { font-size: .82em; color: var(--ink-soft); }
.t-teal { color: var(--teal); font-weight: 700; }
.t-terra { color: var(--terra-dark); font-weight: 700; }

/* 画像 figure */
.fig { margin: 0 0 1.4em; }
.fig img { border-radius: 14px; box-shadow: var(--shadow-sm); max-width: 100%; height: auto; }
.fig figcaption { font-size: .82rem; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.fig--center { text-align: center; }
.fig--center img { margin-inline: auto; }
.fig--left { float: left; margin: 4px 20px 12px 0; }
.fig--right { float: right; margin: 4px 0 12px 20px; }
.article-body::after { content: ""; display: block; clear: both; }

/* リンクカード(外部JSなし) */
.link-card {
  display: flex; flex-direction: column; gap: 4px; margin: 0 0 1.4em;
  background: var(--paper); border: 1.5px solid rgba(157,181,166,.35);
  border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.link-card-title { font-family: var(--font-round); font-weight: 700; color: var(--teal-dark); }
.link-card-host { font-size: .8rem; color: var(--ink-soft); }

/* 動画埋め込み(16:9) */
.embed--video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.4em; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.embed--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 記事フッター */
.article-foot { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; padding-top: 24px; border-top: 2px solid var(--teal-soft); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; max-width: 340px; margin-inline: auto; }
  .product-columns { grid-template-columns: 1fr; gap: 36px; }
  .hero-badge { left: 50%; transform: translateX(-50%) rotate(-1deg); bottom: -14px; }
  .company-wrap { grid-template-columns: 1fr; gap: 28px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .post-list { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); padding: 16px 20px 24px; border-bottom: 1px solid rgba(157,181,166,.3);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-links .btn { margin: 6px 0 0; justify-content: center; }
  .grid--3, .grid--2, .post-list { grid-template-columns: 1fr; }
  .footer-grid { gap: 28px; }
  .fig--left, .fig--right { float: none; margin: 0 0 1.4em; text-align: center; }
  .fig--left img, .fig--right img { margin-inline: auto; }
}

/* 小さめのスマホ: 見出し・カテゴリ行が1〜2行で気持ちよく収まるサイズに */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.66rem, 7.6vw, 1.95rem); }
  .hero-tag { font-size: .78rem; padding: 6px 14px; }
  .product-cat { font-size: .98rem; align-items: flex-start; gap: 10px; }
  .cat-badge { margin-top: 2px; }
  .company-table th { width: 32%; }
  .company-table th, .company-table td { padding: 14px; font-size: .9rem; }
  .contact-card { padding: 28px 20px; }
}

/* =========================================================
   Motion polish — うるさくない程度の“生きてる感”
   （prefers-reduced-motion では上部のグローバル規則で全て停止）
   ========================================================= */
@keyframes floaty  { 0%,100%{ transform: translateY(0) }      50%{ transform: translateY(-9px) } }
@keyframes drift   { 0%,100%{ transform: translate(0,0) rotate(0) } 50%{ transform: translate(14px,-16px) rotate(4deg) } }
@keyframes twinkle { 0%,100%{ opacity:.18; transform: scale(.82) } 50%{ opacity:.72; transform: scale(1.12) } }

/* ヒーローの温かいグラデ */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(58% 55% at 82% 10%, rgba(217,154,92,.16), transparent 60%),
    radial-gradient(52% 50% at 6% 92%, rgba(47,90,84,.10), transparent 60%),
    linear-gradient(180deg, #F8F3E9, var(--cream));
}
.hero-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

/* ブロブをゆっくり漂わせる */
.blob { animation: drift 22s ease-in-out infinite; }
.blob--2 { top: auto; right: auto; bottom: -90px; left: -80px; width: 280px; color: var(--terra); opacity: .2; animation-duration: 27s; animation-direction: reverse; }

/* きらめき（星・ドット） */
.spark { position: absolute; display: block; color: var(--terra); animation: twinkle 5.5s ease-in-out infinite; }
.spark svg { width: 100%; height: 100%; display: block; }
.spark--a { top: 15%; left: 11%; width: 20px; color: var(--teal);  animation-delay: .3s; }
.spark--b { top: 24%; right: 15%; width: 30px; color: var(--terra); animation-delay: 1.3s; }
.spark--c { bottom: 24%; left: 44%; width: 12px; color: var(--sage); animation-delay: 2.1s; }
.spark--d { top: 58%; right: 28%; width: 9px;  color: var(--terra); animation-delay: .9s; }

/* ヒーローの工房イラストをふわりと浮遊＋やわらかな光 */
.hero-visual { animation: floaty 7s ease-in-out infinite; }
.hero-visual::after {
  content: ""; position: absolute; inset: -14px; border-radius: var(--radius-lg); z-index: -1;
  background: radial-gradient(120% 120% at 50% 0%, rgba(217,154,92,.25), transparent 55%);
}

/* 見出しに小さなアクセント下線 */
.section h2::after {
  content: ""; display: block; width: 46px; height: 3px; border-radius: 3px; margin-top: 14px;
  background: linear-gradient(90deg, var(--terra), var(--teal));
}

/* スクロール表示を少しずつずらす（stagger） */
.values .value:nth-child(2), .grid > *:nth-child(2) { transition-delay: .08s; }
.values .value:nth-child(3), .grid > *:nth-child(3) { transition-delay: .16s; }

/* カードのアイコンがホバーでぽこっと */
.card .ico { transition: transform .28s var(--ease), background .28s, color .28s; }
.card:hover .ico { transform: scale(1.08) rotate(-5deg); background: var(--terra); color: #fff; }

/* ボタンにほんの少しの奥行きとホバーの光 */
.btn--primary { background: linear-gradient(180deg, #35655F, var(--teal)); }
.btn--primary:hover { box-shadow: 0 10px 22px rgba(47,90,84,.28); }
.btn--terra { background: linear-gradient(180deg, #E1A567, var(--terra)); }
.btn--terra:hover { box-shadow: 0 10px 22px rgba(196,127,60,.30); }

/* チップにもテラコッタの縁で少し彩り */
.chip { border: 1px solid rgba(217,154,92,.35); }
