/* ひよりオフィス 公式サイト */
:root {
  --accent: #3B6E8F;
  --ink: #1F1D1A;
  --ink-soft: #3A3733;
  --ink-mute: #55534D;
  --paper: #F5F3EE;
  --line: #CFCBC2;
  --white: #FFFFFF;
  --font-head: "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Maru Gothic", sans-serif;
  --font-en: "Inter", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 112.5%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); line-height: 1.8; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.75; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.en { font-family: var(--font-en); }
.inner { max-width: 1200px; margin: 0 auto; }
.narrow { max-width: 820px; margin: 0 auto; }
.section { padding: 96px 40px; }
.section--white { background: var(--white); }
.section--accent { background: var(--accent); color: var(--white); }

/* 見出し */
.display { font-family: var(--font-head); font-weight: 300; line-height: 1.25; font-size: clamp(37.5px, 5.06vw, 61.5px); }
.display--mid { font-size: clamp(33px, 4.4vw, 53px); }
.sec-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 20px; margin-bottom: 48px; }
.sec-title .en { font-size: 15.5px; letter-spacing: 0.08em; color: var(--ink-mute); }

/* ボタン */
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 14px 34px; border: 1px solid currentColor; border-radius: 999px; font-size: 16px; font-weight: 700; }
.pill--lg { padding: 16px 40px; font-size: 16.5px; }
.text-link { display: inline-block; padding: 12px 0; font-size: 16px; font-weight: 700; border-bottom: 1px solid currentColor; }

/* 写真の上のヘッダー */
.top { background-color: #6B665E; background-size: cover; background-position: center; color: var(--white); padding: 28px 40px 56px; }
.top__inner { max-width: 1200px; margin: 0 auto; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.top--home .top__inner { min-height: 640px; }
.top--home { background-image: linear-gradient(rgba(25,23,20,0.5), rgba(25,23,20,0.5)), url(../images/hero.jpg); background-position: center 30%; }
.top--services { background-image: linear-gradient(rgba(25,23,20,0.55), rgba(25,23,20,0.55)), url(../images/band.jpg); }
.top--about { background-image: linear-gradient(rgba(25,23,20,0.55), rgba(25,23,20,0.55)), url(../images/about.jpg); }
.top--blog { background-image: linear-gradient(rgba(25,23,20,0.55), rgba(25,23,20,0.55)), url(../images/blog-header.jpg); }
.top--contact { background-image: linear-gradient(rgba(25,23,20,0.55), rgba(25,23,20,0.55)), url(../images/work-3.jpg); }
.site-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 32px; border-bottom: 1px solid rgba(255,255,255,0.7); padding-bottom: 18px; }
.site-head__logo { font-family: var(--font-en); font-size: 20px; font-weight: 500; letter-spacing: 0.08em; padding: 12px 0; }
.site-nav { font-family: var(--font-en); display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15.5px; }
.site-nav a { padding: 12px 0; }
.site-nav a[aria-current="page"] { border-bottom: 1px solid currentColor; }
.top__label { font-family: var(--font-en); font-size: 15.5px; letter-spacing: 0.12em; display: block; margin-bottom: 10px; }
.top__title { font-family: var(--font-head); font-weight: 300; font-size: clamp(40px, 6vw, 76px); line-height: 1.2; }
.hero__upper { display: flex; flex-direction: column; gap: 28px; }
.hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 48px; }
.hero__catch { font-family: var(--font-head); font-weight: 300; font-size: clamp(44px, 7.4vw, 96px); line-height: 1.2; letter-spacing: 0.01em; }
.hero__name { font-family: var(--font-head); font-weight: 300; font-size: clamp(31px, 4.84vw, 61.5px); line-height: 1.3; }
.hero__lower { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.photo-note { font-size: 14px; color: #F1EEE8; }

/* 中央の紹介文 */
.nb { display: inline-block; }
.statement { padding: 128px 40px; background: var(--white); text-align: center; }
.statement--sm { padding: 112px 40px; }
.statement__label { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink-mute); margin-bottom: 28px; }
.statement__text { font-size: clamp(20px, 2.64vw, 31px); line-height: 1.9; font-weight: 700; color: var(--ink-soft); }
.statement .text-link { margin-top: 28px; }

/* 色面 + 角丸写真 */
.message { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 56px 64px; }
.message__side { flex: 0 1 280px; display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 auto; }
.message__photo { width: 100%; max-width: 280px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 56px; border: 1px solid var(--white); }
.message__role { font-size: 14.5px; line-height: 1.7; text-align: center; }
.message__side .pill { align-self: stretch; padding: 12px 20px; font-weight: 400; }
.message__body { flex: 1 1 420px; max-width: 560px; display: flex; flex-direction: column; gap: 36px; }
.message__body p { font-size: 16.5px; line-height: 2; }
.message__body p + p { margin-top: 20px; }
.message__sub { font-size: 0.5em; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { padding: 8px 18px; border: 1px solid currentColor; border-radius: 999px; font-size: 14.5px; }

/* できること(トップ:3列) */
.cards { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.card { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.num { font-family: var(--font-en); font-size: 48.5px; font-weight: 300; line-height: 1; color: var(--accent); }
.card h3 { font-size: 23px; font-weight: 700; line-height: 1.5; }
.card p, .row p { font-size: 16px; line-height: 1.95; color: var(--ink-soft); }
.more { margin-top: 48px; }

/* できること(下層:行) */
.row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 40px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.row:first-of-type { padding-top: 0; }
.row .num { flex: 0 0 72px; }
.row h3 { flex: 1 1 300px; font-size: 24px; font-weight: 700; line-height: 1.5; }
.row p { flex: 1.4 1 340px; }

/* 写真の帯 */
.band { background-color: #56524B; background-image: linear-gradient(rgba(25,23,20,0.5), rgba(25,23,20,0.5)), url(../images/band.jpg); background-size: cover; background-position: center; color: var(--white); padding: 40px 40px 64px; }
.band__inner { max-width: 1200px; margin: 0 auto; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; gap: 40px; }
.band__inner .photo-note { align-self: flex-end; }
.band__text { font-family: var(--font-head); font-weight: 300; font-size: clamp(28.5px, 6.16vw, 79px); line-height: 1.3; }

/* つくったもの・記事 */
.grid3 { display: flex; flex-wrap: wrap; gap: 48px 28px; }
.work, .post { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.work img, .post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; }
.work__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.work__cap strong { font-size: 17.5px; }
.work__cap .en { font-size: 13px; color: var(--ink-mute); }
.post__meta { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.post__meta .tag { padding: 5px 14px; border: 1px solid var(--ink); border-radius: 999px; }
.post__meta time, .post__meta .date { color: var(--ink-mute); }
.post h3 { font-size: 21px; font-weight: 700; line-height: 1.6; }
.post p { font-size: 15.5px; line-height: 1.9; color: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 15px; margin-top: 24px; }
.filters span { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--ink); }
.filters .is-on { background: var(--ink); color: var(--white); }

/* 料金 */
.price { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px 64px; }
.price__lead { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; }
.price__lead p { font-size: 16.5px; line-height: 2; max-width: 420px; }
.plan { flex: 1 1 420px; max-width: 520px; border: 1px solid var(--white); border-radius: 40px; padding: 44px 44px 40px; display: flex; flex-direction: column; gap: 20px; }
.plan__name { font-size: 16.5px; font-weight: 700; }
.plan__price { display: flex; align-items: baseline; gap: 10px; }
.plan__price .en { font-size: clamp(53px, 6.6vw, 79px); font-weight: 300; line-height: 1; }
.plan dl { margin: 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.7); }
.plan dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.7); }
.plan dd { margin: 0; text-align: right; }
.opt { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.opt:first-of-type { padding-top: 0; }
.opt__name { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.opt__name strong { font-size: 18.5px; }
.opt__name span { font-size: 15px; color: var(--ink-mute); }
.opt__price { font-size: 17.5px; font-weight: 700; }
.steps { display: flex; flex-wrap: wrap; gap: 36px 40px; }
.step { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--ink); padding-top: 20px; }
.step .en { font-size: 15.5px; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { font-size: 15.5px; line-height: 1.9; color: var(--ink-soft); }

/* しごと */
.jobs { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.job { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.job .en, .job__kind { font-size: 15.5px; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; }
.job h3 { font-size: 24px; font-weight: 700; line-height: 1.5; }
.job p { font-size: 16px; line-height: 1.95; color: var(--ink-soft); }

/* 事業概要 */
.outline { margin: 0; border-bottom: 1px solid var(--line); }
.outline > div { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 24px 0; border-top: 1px solid var(--line); }
.outline > div:first-child { border-top: none; padding-top: 0; }
.outline dt { flex: 0 0 160px; font-weight: 700; font-size: 16.5px; }
.outline dd { flex: 1 1 320px; margin: 0; font-size: 16.5px; line-height: 1.9; color: var(--ink-soft); }
.outline__list { margin: 0; padding-left: 1.2em; }
.outline__list li + li { margin-top: 4px; }
.outline__link { border-bottom: 1px solid currentColor; }
.sns { display: flex; flex-wrap: wrap; gap: 10px; }
.sns__link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; min-height: 44px; border: 1px solid var(--ink); border-radius: 999px; font-family: var(--font-en); font-size: 15.5px; color: var(--ink); }

/* 書いている人 */
.author { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.author__body { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.author__label { font-size: 14.5px; }
.author__name { font-family: var(--font-head); font-weight: 300; font-size: clamp(28.5px, 3.74vw, 44px); line-height: 1.3; }
.author__body p:last-child { font-size: 16px; }

/* ご相談 */
.contact { display: flex; flex-wrap: wrap; gap: 56px 80px; }
.contact__lead { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact__lead > p { font-size: 16.5px; line-height: 2; color: var(--ink-soft); }
.notes { list-style: none; margin: 0; padding: 0; font-size: 16px; border-bottom: 1px solid var(--line); }
.notes li { padding: 14px 0; border-top: 1px solid var(--line); }
.notes li:first-child { border-top-color: var(--ink); }
.form { position: relative; flex: 1.3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15.5px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 18px; border: 1px solid var(--ink); border-radius: 16px; background: var(--white); font: inherit; font-size: 17.5px; color: var(--ink); }
.field textarea { line-height: 1.8; resize: vertical; }
.form button { align-self: flex-start; padding: 16px 48px; border: none; border-radius: 999px; background: var(--accent); color: var(--white); font: inherit; font-size: 16.5px; font-weight: 700; cursor: pointer; }
.form button:hover { opacity: 0.85; }
.form button:disabled { opacity: 0.5; cursor: default; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field--human { padding: 20px; border: 1px dashed var(--ink-mute); border-radius: 16px; background: var(--white); }
.field__hint { font-size: 14px; color: var(--ink-mute); }
.form__status { font-size: 15.5px; color: var(--ink-soft); min-height: 1.8em; }

/* フッター */
.cta { background: var(--accent); color: var(--white); padding: 88px 40px 36px; }
.cta__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 64px; margin-bottom: 48px; }
.cta__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; }
.cta__text p:last-child { font-size: 16px; line-height: 1.9; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.cta .foot { border-top: 1px solid rgba(255,255,255,0.7); padding-top: 22px; }
.foot--dark { background: var(--ink); color: #E9E5DD; padding: 28px 40px; }
.foot--dark .foot { max-width: 1200px; margin: 0 auto; }

/* スマホ */
@media (max-width: 640px) {
  .section, .statement, .statement--sm { padding: 72px 24px; }
  .top { padding: 20px 24px 44px; }
  .top--home .top__inner { min-height: 520px; }
  .top__inner { min-height: 260px; }
  .band { padding: 28px 24px 48px; }
  .band__inner { min-height: 280px; }
  .cta { padding: 72px 24px 28px; }
  .foot--dark { padding: 24px; }
  .site-nav { gap: 0 20px; font-size: 14.5px; }
  .plan { padding: 32px 28px; border-radius: 32px; }
  .statement__text br { display: none; }
  .sec-title { margin-bottom: 36px; }
}

/* === motion === 動きの演出(動きを減らす設定の端末では無効) */
.pill { transition: background-color .35s ease, color .35s ease; }
.pill:hover { background: var(--white); color: var(--accent); opacity: 1; }
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { border-bottom: none; }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.work img, .post img { transition: clip-path 1.1s cubic-bezier(.2,.7,.2,1), transform 1.6s cubic-bezier(.2,.7,.2,1); }

/* 写真をゆっくり寄せる + スクロールでずらす */
.js .top, .js .band { position: relative; overflow: hidden; background-image: none; }
.js .top::before, .js .band::before { content: ""; position: absolute; inset: -40px 0; background-size: cover; background-position: center; transform: translateY(var(--py, 0px)) scale(1.12); animation: photo-zoom 9s cubic-bezier(.2,.6,.2,1) forwards; z-index: 0; }
.js .top--home::before { background-image: linear-gradient(rgba(25,23,20,0.5), rgba(25,23,20,0.5)), url(../images/hero.jpg); background-position: center 30%; }
.js .top--services::before { background-image: linear-gradient(rgba(25,23,20,0.55), rgba(25,23,20,0.55)), url(../images/band.jpg); }
.js .top--about::before { background-image: linear-gradient(rgba(25,23,20,0.55), rgba(25,23,20,0.55)), url(../images/about.jpg); }
.js .top--blog::before { background-image: linear-gradient(rgba(25,23,20,0.55), rgba(25,23,20,0.55)), url(../images/blog-header.jpg); }
.js .top--contact::before { background-image: linear-gradient(rgba(25,23,20,0.55), rgba(25,23,20,0.55)), url(../images/work-3.jpg); }
.js .band::before { background-image: linear-gradient(rgba(25,23,20,0.5), rgba(25,23,20,0.5)), url(../images/band.jpg); animation: none; transform: translateY(var(--py, 0px)) scale(1.06); }
.js .top__inner, .js .band__inner { position: relative; z-index: 1; }
@keyframes photo-zoom { from { transform: translateY(var(--py, 0px)) scale(1.12); } to { transform: translateY(var(--py, 0px)) scale(1); } }

/* 開いたとき:メニューが降りてきて、見出しが1文字ずつ出る */
.js .site-head { opacity: 0; transform: translateY(-14px); animation: drop-in .9s cubic-bezier(.2,.7,.2,1) .1s forwards; }
.js .top__label, .js .hero__lower { opacity: 0; animation: fade-up 1s cubic-bezier(.2,.7,.2,1) 1.3s forwards; }
.js .top__label { animation-delay: .25s; }
.js .hero__catch, .js .hero__name, .js .top__title { visibility: hidden; }
.js.is-loaded .hero__catch, .js.is-loaded .hero__name, .js.is-loaded .top__title { visibility: visible; }
.ch { display: inline-block; opacity: 0; transform: translateY(.5em); filter: blur(6px); animation: char-in .9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes char-in { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes drop-in { to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* スクロールで順番に出る */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.2s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform 1.8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.js .rv.is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* 見出しの線が左から引かれる */
.js .sec-title { position: relative; border-bottom-color: transparent; }
.js .sec-title::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.2,.7,.2,1) .2s; }
.js .sec-title.is-in::after { transform: scaleX(1); }

/* ブログ記事ページ */
.top__title--post { font-size: clamp(31px, 4.84vw, 57px); line-height: 1.4; }
.article .post__meta { margin-bottom: 40px; }
.article__body p { font-size: 18px; line-height: 2.1; color: var(--ink-soft); margin-bottom: 1.8em; }
.article__body .article__sign { text-align: right; font-weight: 700; color: var(--ink); }
.article__back { display: inline-block; margin-top: 32px; font-size: 16px; border-bottom: 1px solid currentColor; }
.post h3 a:hover { opacity: .7; }
@media (max-width: 640px) { .article__body p { font-size: 17px; } .article__body br { display: none; } }
.grid3 .post:only-child { flex: 0 1 380px; }

/* ブログの絞り込みボタン */
.filters button { font: inherit; color: inherit; background: none; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--ink); cursor: pointer; }
.filters button.is-on { background: var(--ink); color: var(--white); }
.post[hidden] { display: none; }

/* アプリ風の下のメニュー(スマホ・アプリで表示) */
.tabbar { display: none; }
@media (max-width: 820px), (display-mode: standalone) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255,255,255,0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; font-size: 11.5px; font-weight: 500; color: var(--ink-mute); }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
  .tabbar a[aria-current="page"] { color: var(--accent); font-weight: 700; }
  .tabbar a:hover { opacity: 1; }
}
.posts-empty { color: var(--ink-mute); font-size: 16px; }
.posts-empty[hidden] { display: none; }

/* スマホ:トップ写真を少し暗くして白い文字を読みやすく */
@media (max-width: 640px) {
  .top--home, .js .top--home::before { background-image: linear-gradient(rgba(25,23,20,0.64), rgba(25,23,20,0.64)), url(../images/hero.jpg); }
  .js .top--home { background-image: none; }
}

/* 制作実績:準備中の表示 */
.works-soon { padding: 56px 24px; text-align: center; font-size: 17.5px; line-height: 2; color: var(--ink-mute); border: 1px dashed var(--line); border-radius: 28px; }

/* トップ:事業内容の英字 */
.hero__words { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--font-en); font-size: 14px; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; }
.hero__words li { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.hero__words li::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.8; }
.js .hero__words li { opacity: 0; animation: word-in 1s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero__words li:nth-child(1) { animation-delay: 1.5s; }
.js .hero__words li:nth-child(2) { animation-delay: 1.65s; }
.js .hero__words li:nth-child(3) { animation-delay: 1.8s; }
.js .hero__words li:nth-child(4) { animation-delay: 1.95s; }
.js .hero__words li::before { transform: scaleX(0); transform-origin: left; animation: line-in .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: inherit; }
.js .hero__lower { animation-delay: 2.1s; }
@keyframes word-in { from { opacity: 0; letter-spacing: 0.5em; } to { opacity: 1; letter-spacing: 0.26em; } }
@keyframes line-in { to { transform: scaleX(1); } }
@media (max-width: 640px) { .hero__words { font-size: 12px; gap: 8px 20px; letter-spacing: 0.22em; } .hero__words li::before { width: 16px; } @keyframes word-in { from { opacity: 0; letter-spacing: 0.4em; } to { opacity: 1; letter-spacing: 0.22em; } } }

/* トップ:キャッチコピー・英字・屋号を縦に並べる */
.hero__row { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 22px; }
.hero__words { gap: 6px 0; }
.hero__words li { gap: 0; }
.hero__words li::before, .js .hero__words li::before { content: none; }
.hero__words li + li::before, .js .hero__words li + li::before { content: "/"; width: auto; height: auto; background: none; margin: 0 14px; opacity: 0.7; transform: none; animation: none; }
.js .hero__words li:nth-child(1) { animation-delay: 1.25s; }
.js .hero__words li:nth-child(2) { animation-delay: 1.4s; }
.js .hero__words li:nth-child(3) { animation-delay: 1.55s; }
.js .hero__words li:nth-child(4) { animation-delay: 1.7s; }
@media (max-width: 640px) { .hero__row { gap: 16px; } .hero__words { font-size: 11.5px; letter-spacing: 0.18em; } .hero__words li + li::before { margin: 0 9px; } @keyframes word-in { from { opacity: 0; letter-spacing: 0.34em; } to { opacity: 1; letter-spacing: 0.18em; } } }

.hero__words li + li::before, .js .hero__words li + li::before { content: none; }
.hero__words li:not(:last-child)::after { content: "/"; margin: 0 14px; opacity: 0.7; }
@media (max-width: 640px) { .hero__words li:not(:last-child)::after { margin: 0 9px; } }

/* 制作実績:1件のときは広がりすぎないように */
.grid3 .work:only-child { flex: 0 1 520px; }
.work__note { font-size: 15.5px; line-height: 1.9; color: var(--ink-soft); }
a.work { color: inherit; }

/* アプリにする案内 */
.a2hs { position: fixed; right: 0; top: 42%; z-index: 60; font-family: var(--font-body); }
.a2hs__tab { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 9px 16px; border: 0; border-radius: 16px 0 0 16px; background: var(--accent); color: var(--white); font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .12em; cursor: pointer; box-shadow: -4px 6px 18px rgba(31,29,26,.18); transition: transform .35s cubic-bezier(.2,.7,.2,1), padding .35s; }
.a2hs__tab:hover { padding-right: 13px; }
.a2hs__tabic { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.a2hs__tab span { display: block; -webkit-writing-mode: vertical-rl; writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap; line-height: 1.2; color: #fff; -webkit-text-fill-color: #fff; }
.a2hs.is-hello .a2hs__tab { animation: a2hs-hello 1.4s cubic-bezier(.3,.7,.3,1) 2; }
@keyframes a2hs-hello { 0%,100% { transform: translateX(0); } 30% { transform: translateX(-10px) rotate(-3deg); } 55% { transform: translateX(0); } 70% { transform: translateX(-5px); } }
.a2hs__panel { position: absolute; right: 0; top: 50%; width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - 140px); overflow-y: auto; transform: translate(105%, -50%); padding: 30px 26px 26px; background: var(--white); border-radius: 28px 0 0 28px; box-shadow: -10px 14px 40px rgba(31,29,26,.22); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.a2hs.is-open .a2hs__panel { transform: translate(0, -50%); }
.a2hs.is-open .a2hs__tab { transform: translateX(-340px); opacity: 0; pointer-events: none; }
.a2hs__close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.a2hs__icon img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 16px rgba(59,110,143,.3); animation: a2hs-float 3.2s ease-in-out infinite; }
@keyframes a2hs-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
.a2hs__kicker { margin-top: 18px; font-family: var(--font-en); font-size: 12px; letter-spacing: .16em; color: var(--accent); font-weight: 700; }
.a2hs__title { margin-top: 6px; font-family: var(--font-head); font-size: 23px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.a2hs__lead { margin-top: 10px; font-size: 14.5px; line-height: 1.8; color: var(--ink-mute); }
.a2hs__steps { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.a2hs__steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--paper); border-radius: 16px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.a2hs__n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--white); font-family: var(--font-en); font-size: 14.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.a2hs__ic { display: inline-block; width: 19px; height: 19px; margin: 0 3px; vertical-align: -4px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a2hs__ic circle { fill: var(--accent); stroke: none; }
.a2hs__install { margin-top: 18px; width: 100%; padding: 14px; border: 0; border-radius: 999px; background: var(--accent); color: var(--white); font: inherit; font-weight: 700; cursor: pointer; }
.a2hs__install[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .a2hs__tab, .a2hs__panel { transition: none; } .a2hs.is-hello .a2hs__tab, .a2hs__icon img { animation: none; } }
