/* 一捲企画 — 遊び心は「傾き・丸枠・ピンクの帯」に集める。地は静かに。 */
:root {
  --paper: #f4f3ef;
  --ink: #161616;
  --pink: #ff2e7e;
  --pink-soft: #ffd7e6;
  --yellow: #ffd23f;
  --blue: #2f6bff;
  --white: #ffffff;

  --font-display: "Dela Gothic One", "Zen Maru Gothic", sans-serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-en: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --line: 3px;
  --radius-l: 32px;
  --radius-m: 22px;
  --shadow-pop: 10px 10px 0 var(--ink);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(15px, 0.9rem + 0.25vw, 17px);
  line-height: 1.85;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; }
@media (max-width: 767px) { .pc { display: none; } }

/* 丸枠ラベル（アソビシステムの楕円ボタンの文法） */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .32em 1.05em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-en);
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.pill--ink { background: var(--ink); color: var(--white); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
}
.site-header__logo img { width: clamp(132px, 14vw, 178px); height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-weight: 700; font-size: 15px; }
.site-nav a:not(.pill) { text-decoration: none; position: relative; }
.site-nav a:not(.pill)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: var(--pink); border-radius: 3px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:not(.pill):hover::after, .site-nav a[aria-current="page"]:not(.pill)::after { transform: scaleX(1); }
.site-nav a[aria-current="page"].pill { background: var(--pink); }
.site-nav .pill { font-family: var(--font-body); font-weight: 900; padding: .45em 1.3em; transition: transform .3s var(--ease-spring); }
.site-nav .pill:hover { transform: rotate(-4deg) scale(1.05); }
.menu-btn { display: none; cursor: pointer; font-size: 14px; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 22px;
    background: var(--pink); color: var(--white);
    font-family: var(--font-display); font-weight: 400; font-size: 30px;
    clip-path: circle(0 at calc(100% - 50px) 34px);
    transition: clip-path .5s cubic-bezier(.7, 0, .2, 1);
  }
  .site-nav .pill { font-family: var(--font-display); font-weight: 400; font-size: 22px; background: var(--white); color: var(--ink); }
  .site-nav a:not(.pill)::after { background: var(--white); }
  .site-header.is-open .site-nav { clip-path: circle(150% at calc(100% - 50px) 34px); }
  /* すりガラス（backdrop-filter）があると、固定配置のメニューがヘッダーの高さに閉じこめられて
     後ろが透ける。スマホでは外して、地の色を不透明にする */
  .site-header { backdrop-filter: none; background: var(--paper); }
  .site-header.is-open { background: transparent; }
  body.menu-open { overflow: hidden; }
}

/* ---------- ヒーロー ----------
   見出しは動画の左下。動画にかかるのは枠の下端ぎりぎり（.5em）だけで、中のアニメには重ねない。
   ラベル5つは動画の右上の枠にかける。 */
.hero { padding: clamp(96px, 12vw, 128px) var(--gutter) clamp(40px, 6vw, 72px); }
.hero__stage { position: relative; max-width: 1240px; margin: 0 auto; }
.hero__frame {
  aspect-ratio: 16 / 9;
  border: var(--line) solid var(--ink); border-radius: var(--radius-l);
  overflow: hidden; background: var(--paper);
  transform: rotate(-1.4deg); box-shadow: var(--shadow-pop);
}
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__kicker {
  position: absolute; top: -18px; right: 4%;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end;
  transform: rotate(3deg);
}
.hero__kicker span {
  padding: .2em .9em; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--yellow); font-weight: 900; font-size: 14px;
}
.hero__kicker span:nth-child(2), .hero__kicker span:nth-child(5) { background: var(--white); }
.hero__kicker span:nth-child(3) { background: var(--blue); color: var(--white); }
.hero__kicker span:nth-child(4) { background: var(--pink); color: var(--white); }
.hero__title {
  position: absolute; left: -1%; top: calc(100% - .5em);
  display: flex; flex-direction: column; align-items: flex-start; gap: .12em;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 5.6vw, 84px); line-height: 1.15; letter-spacing: .02em;
}
.hero__line {
  padding: .02em .5em .08em;
  border: var(--line) solid var(--ink); border-radius: 999px;
  background: var(--white); transform: rotate(-3deg);
}
.hero__line--pink { background: var(--pink); color: var(--white); transform: rotate(1.5deg) translateX(.6em); }
/* 見出しが動画の下に2段ぶん垂れるので、そのぶん本文を下げる */
.hero__lead { max-width: 40em; margin: calc(clamp(30px, 5.6vw, 84px) * 2.3 + 32px) auto 0; font-weight: 700; font-size: clamp(16px, 1.1rem + .3vw, 20px); }
@media (max-width: 767px) {
  .hero__kicker { position: static; justify-content: flex-start; margin-top: 18px; transform: rotate(-1deg); }
  .hero__kicker span { font-size: 12px; }
  .hero__title { position: static; margin-top: 14px; font-size: clamp(34px, 10.5vw, 48px); }
  .hero__lead { margin-top: 28px; }
  .hero__frame { border-radius: var(--radius-m); box-shadow: 6px 6px 0 var(--ink); }
}

/* ---------- ピンクの帯 ---------- */
.tape {
  position: relative; z-index: 2;
  width: 112vw; margin: clamp(24px, 4vw, 48px) 0 0 -6vw;
  background: var(--pink); color: var(--white);
  border-block: var(--line) solid var(--ink);
  transform: rotate(-2.5deg);
  overflow: hidden;
}
.tape__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  padding: 14px 0;
  font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 34px); white-space: nowrap;
  animation: tape 38s linear infinite;
}
.tape__track i { width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); flex: none; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- 宣言 ---------- */
.statement {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end;
  max-width: 1280px; margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter) clamp(64px, 9vw, 120px);
}
.statement__en { font-family: var(--font-en); font-weight: 900; font-size: clamp(40px, 7vw, 112px); line-height: .92; letter-spacing: -.02em; }
.statement__en span { display: block; white-space: nowrap; transform-origin: left center; }
.statement__en span:nth-child(1) { transform: rotate(-4deg); }
.statement__en span:nth-child(2) { transform: rotate(2deg) translateX(.35em); }
.statement__en span:nth-child(3) { transform: rotate(-1.5deg) translateX(.1em); color: var(--pink); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.statement__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.4; margin-bottom: .8em; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .statement__en { font-size: 11.4vw; line-height: 1.12; }
  .statement__en span:nth-child(1) { transform: rotate(-3deg); }
  .statement__en span:nth-child(2) { transform: rotate(1.5deg) translateX(.2em); }
  .statement__en span:nth-child(3) { transform: rotate(-1deg); -webkit-text-stroke-width: 2px; }
}

/* ---------- 見出し（NSC：小さな英字＋大きな日本語） ---------- */
.sec-head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head__en { font-family: var(--font-en); font-weight: 800; font-size: 14px; letter-spacing: .14em; color: var(--pink); }
.sec-head__jp { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.2; }

/* ---------- できること ---------- */
.services { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(80px, 10vw, 140px); }
.service-list {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(40px, 4vw, 56px) clamp(20px, 2.4vw, 36px);
  max-width: 1240px; margin: 0 auto; padding-top: 40px;
}
.service {
  position: relative; grid-column: span 2;
  padding: clamp(110px, 10vw, 130px) clamp(22px, 2.4vw, 32px) 28px;
  border: var(--line) solid var(--ink); border-radius: var(--radius-l);
  box-shadow: var(--shadow-pop);
  transition: transform .45s var(--ease-spring);
}
.service:nth-child(1) { grid-column: 1 / span 3; transform: rotate(-1.6deg); }
.service:nth-child(2) { grid-column: 4 / span 3; transform: rotate(1.2deg); margin-top: 28px; }
.service:nth-child(3) { transform: rotate(.8deg); }
.service:nth-child(4) { transform: rotate(-1.2deg); margin-top: 22px; }
.service:nth-child(5) { transform: rotate(1.6deg); }
.service:hover { transform: rotate(0) translateY(-6px); }
.service--pink { background: var(--pink-soft); }
.service--blue { background: #dfe7ff; }
.service--yellow { background: #fff1bf; }
.service--white { background: var(--white); }
.service--ink { background: var(--ink); color: var(--white); box-shadow: 10px 10px 0 var(--pink); }
.service__icon {
  position: absolute; top: -56px; right: 14px;
  width: clamp(130px, 13vw, 168px); height: auto;
  filter: drop-shadow(0 14px 14px rgba(22, 22, 22, .18));
  transition: transform .5s var(--ease-spring);
}
.service:hover .service__icon { transform: translateY(-10px) rotate(-8deg) scale(1.06); }
.service__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.3; margin-bottom: .5em; }
.service__text { margin-bottom: 1.1em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: .1em .8em; border: 2px solid currentColor; border-radius: 999px; font-size: 13px; font-weight: 700; }
@media (max-width: 960px) {
  .service-list { grid-template-columns: 1fr 1fr; }
  .service, .service:nth-child(n) { grid-column: auto; margin-top: 0; }
}
@media (max-width: 620px) {
  .service-list { grid-template-columns: 1fr; gap: 72px; }
  .service__icon { width: 128px; top: -60px; }
  .service { padding-top: 84px; }
}

/* ---------- 実績 ---------- */
.works { padding: clamp(64px, 8vw, 120px) var(--gutter); background: var(--white); border-block: var(--line) solid var(--ink); }
.works__note { text-align: center; margin: -28px 0 clamp(36px, 5vw, 56px); font-weight: 700; }
.work-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px); max-width: 1240px; margin: 0 auto; }
.work { position: relative; }
.work__screen {
  position: relative; aspect-ratio: 16 / 10;
  border: var(--line) solid var(--ink); border-radius: var(--radius-m);
  overflow: hidden; background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform .45s var(--ease-spring), box-shadow .3s ease;
}
.work:nth-child(1) .work__screen { transform: rotate(-2deg); }
.work:nth-child(2) .work__screen { transform: rotate(1.5deg); }
.work:nth-child(3) .work__screen { transform: rotate(-1deg); }
.work__screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work__screen.is-playing { transform: rotate(0) scale(1.03); box-shadow: 8px 8px 0 var(--pink); }
.work__name { position: relative; z-index: 2; margin: -20px 0 0 -6px; font-size: clamp(15px, 1.4vw, 19px); transform: rotate(-3deg); }
.work__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; margin: .7em 0 .4em; }
.work__text { font-size: .95em; }
@media (max-width: 960px) { .work-list { grid-template-columns: 1fr; max-width: 640px; } }

.more-works { max-width: 1240px; margin: clamp(64px, 8vw, 100px) auto 0; }
.more-works__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 1em; }
.more-works__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3vw, 44px); }
.more-works__list li { padding: 16px 0; border-top: 2px dashed var(--ink); }
.more-works__list b { display: block; font-weight: 900; font-size: 1.08em; }
.more-works__list b::before { content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .45em; border-radius: 50%; background: var(--pink); vertical-align: .08em; }
@media (max-width: 960px) { .more-works__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .more-works__list { grid-template-columns: 1fr; } }

/* ---------- 進め方 ---------- */
.flow { padding: clamp(80px, 10vw, 140px) var(--gutter); }
.flow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); max-width: 1240px; margin: 0 auto; counter-reset: step; }
.flow-list li { position: relative; counter-increment: step; padding-top: 86px; }
.flow-list li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 68px; height: 68px;
  border: var(--line) solid var(--ink); border-radius: 50%;
  background: var(--yellow);
  font-family: var(--font-en); font-weight: 900; font-size: 30px;
}
.flow-list li:nth-child(even)::before { background: var(--pink); color: var(--white); }
.flow-list li:not(:last-child)::after {
  content: ""; position: absolute; top: 33px; left: 80px; right: -12px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 18px);
}
.flow-list b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; margin-bottom: .4em; }
@media (max-width: 860px) {
  .flow-list { grid-template-columns: 1fr; gap: 28px; }
  .flow-list li { padding: 0 0 0 88px; min-height: 68px; }
  .flow-list li:not(:last-child)::after { top: 76px; bottom: -24px; left: 33px; right: auto; width: 3px; height: auto;
    background: repeating-linear-gradient(180deg, var(--ink) 0 10px, transparent 10px 18px); }
}

/* ---------- プロフィール ---------- */
.profile { padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }
.profile__card {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 44px); align-items: center;
  max-width: 980px; margin: 0 auto; padding: clamp(26px, 4vw, 48px);
  background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius-l);
  box-shadow: var(--shadow-pop); transform: rotate(-.8deg);
}
.profile__mark { width: clamp(84px, 10vw, 128px); height: auto; }
.profile__role { font-weight: 900; color: var(--pink); }
.profile__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.3; margin-bottom: .5em; }
.profile__name span { margin-left: .6em; font-family: var(--font-en); font-weight: 800; font-size: .42em; vertical-align: middle; }
@media (max-width: 620px) { .profile__card { grid-template-columns: 1fr; } .profile__name span { display: block; margin: 0; } }

/* ---------- 問い合わせ ---------- */
.contact {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  background: var(--pink); color: var(--white); text-align: center;
  border-top: var(--line) solid var(--ink);
  border-radius: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 80px) 0 0;
}
.contact__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 8vw, 112px); line-height: 1.1; transform: rotate(-3deg); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.contact__text { margin: 1.4em auto 2em; font-weight: 700; }

/* ---------- 下層ページの見出し ---------- */
.page-hero { max-width: 1240px; margin: 0 auto; padding: clamp(120px, 14vw, 176px) var(--gutter) clamp(40px, 6vw, 72px); }
.page-hero__en { font-family: var(--font-en); font-weight: 900; font-size: clamp(16px, 1.6vw, 22px); letter-spacing: .1em; color: var(--pink); transform: rotate(-3deg); transform-origin: left; }
.page-hero__title {
  display: inline-block; margin-top: .2em; padding: .04em .55em .1em;
  border: var(--line) solid var(--ink); border-radius: 999px; background: var(--white);
  box-shadow: 8px 8px 0 var(--ink); transform: rotate(-2deg);
  font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 6.4vw, 92px); line-height: 1.2;
}
.page-hero__lead { max-width: 36em; margin-top: clamp(26px, 3vw, 40px); font-weight: 700; font-size: clamp(16px, 1.05rem + .2vw, 19px); }
.page-services .services, .page-works .works { padding-top: clamp(24px, 3vw, 40px); }
.page-works .works { background: transparent; border: 0; }

/* ---------- トップ：できることの入口 ---------- */
.digest { padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(72px, 9vw, 120px); }
.digest-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.6vw, 22px); max-width: 1240px; margin: 0 auto; }
.digest-list a {
  display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%;
  padding: 18px 12px 20px; text-decoration: none; text-align: center;
  border: var(--line) solid var(--ink); border-radius: var(--radius-m); background: var(--white);
  box-shadow: 6px 6px 0 var(--ink); font-weight: 900;
  transition: transform .4s var(--ease-spring), box-shadow .2s ease;
}
.digest-list li:nth-child(odd) a { transform: rotate(-2deg); }
.digest-list li:nth-child(even) a { transform: rotate(1.5deg) translateY(10px); }
.digest-list a:hover { transform: rotate(0) translateY(-6px); box-shadow: 8px 10px 0 var(--pink); }
.digest-list img { width: min(120px, 80%); height: auto; filter: drop-shadow(0 10px 10px rgba(22, 22, 22, .15)); }
.more { margin-top: clamp(36px, 4vw, 56px); text-align: center; }
.more .pill { font-family: var(--font-body); font-weight: 900; font-size: 16px; padding: .6em 1.6em; box-shadow: 5px 5px 0 var(--ink); transition: transform .3s var(--ease-spring); }
.more .pill:hover { transform: rotate(-3deg) scale(1.04); }
.text-link { display: inline-block; margin-top: 1em; font-weight: 900; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 5px; }
@media (max-width: 860px) { .digest-list { grid-template-columns: repeat(2, 1fr); } .digest-list li:last-child { grid-column: span 2; } }

/* ---------- できること：組み合わせ ---------- */
.combo { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 9vw, 120px); }
.combo__title, .faq__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 32px); margin-bottom: 1em; }
.combo-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.combo-list li { padding: 22px 24px; border: var(--line) solid var(--ink); border-radius: var(--radius-m); background: var(--white); }
.combo-list b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15em; color: var(--pink); margin-bottom: .3em; }
@media (max-width: 860px) { .combo-list { grid-template-columns: 1fr; } }

/* ---------- 実績：AI会社 ---------- */
.feature { max-width: 1240px; margin: 0 auto clamp(64px, 8vw, 110px); padding: clamp(28px, 4vw, 56px);
  background: var(--ink); color: var(--white); border-radius: var(--radius-l); box-shadow: 10px 10px 0 var(--pink); }
.page-works .feature { margin-inline: max(var(--gutter), calc((100% - 1240px) / 2)); }
.feature .pill { color: var(--ink); transform: rotate(-3deg); }
.feature__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3vw, 40px); line-height: 1.35; margin: .6em 0 .5em; }
.feature__lead { max-width: 44em; }
/* 線だけの箱は黒地で読みにくいので、色で塗った札にする。係の名前は丸ゴシックの太字 */
.org-label { margin: clamp(28px, 4vw, 44px) 0 12px; font-weight: 900; font-size: 14px; color: var(--yellow); }
.org-label + .crew { margin-top: 0; }
.org { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.org li, .crew li {
  position: relative; padding: 14px 16px; border-radius: 18px;
  font-family: var(--font-body); font-weight: 900; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.4;
}
.org li { background: var(--white); color: var(--ink); }
.crew li { background: #2d2d2d; color: var(--white); }
.org li small, .crew li small { display: block; font-weight: 700; font-size: 13px; margin-top: .3em; }
.org li small { color: #4a4a4a; }
.crew li small { color: #d6d6d6; }
/* 流れの矢印（黄色の三角） */
.org li:not(:last-child)::after {
  content: ""; position: absolute; right: -17px; top: 50%; margin-top: -7px;
  border: 7px solid transparent; border-left: 10px solid var(--yellow); border-right: 0;
}
.org li.org__human { background: var(--pink); color: var(--white); transform: rotate(-3deg); }
.org li.org__human small { color: var(--white); }
.crew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) {
  .org { grid-template-columns: 1fr; gap: 20px; }
  .org li:not(:last-child)::after {
    right: auto; left: 28px; top: auto; bottom: -16px; margin-top: 0;
    border: 7px solid transparent; border-top: 10px solid var(--yellow); border-bottom: 0;
  }
  .crew { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .crew { grid-template-columns: 1fr; } }

/* ---------- 進め方：よくある質問 ---------- */
.page-flow .flow { padding-top: clamp(24px, 3vw, 40px); }
.faq { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 9vw, 120px); }
.faq details { border: var(--line) solid var(--ink); border-radius: var(--radius-m); background: var(--white); margin-bottom: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative; font-weight: 900; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 3px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 3px 100% no-repeat;
  transition: transform .3s var(--ease-spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; }

/* ---------- プロフィール：屋号の由来 ---------- */
.page-profile .profile { padding-top: clamp(16px, 2vw, 24px); }
.origin { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }
.origin__art { padding: clamp(24px, 4vw, 48px); background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius-l); box-shadow: var(--shadow-pop); transform: rotate(2deg); }
.origin__art img { width: min(280px, 100%); height: auto; margin: 0 auto; }
.origin__en { font-family: var(--font-en); font-weight: 900; color: var(--pink); letter-spacing: .1em; }
.origin__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.35; margin: .3em 0 .7em; }
.origin__body p + p { margin-top: 1em; }
@media (max-width: 860px) { .origin { grid-template-columns: 1fr; } }

/* ---------- 相談 ---------- */
.contact__memo { display: inline-block; text-align: left; margin: 1.6em auto 2.2em; padding: 20px 28px; border: var(--line) solid var(--ink); border-radius: var(--radius-m); background: var(--white); color: var(--ink); font-weight: 700; }
.contact__memo ul { margin-top: .5em; }
.contact__memo li::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .5em; border-radius: 50%; background: var(--pink); }
.cta-band { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap;
  padding: clamp(48px, 6vw, 80px) var(--gutter); background: var(--pink); border-top: var(--line) solid var(--ink); text-align: center; }
.cta-band__text { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 44px); color: var(--white); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; transform: rotate(-2deg); }
.cta-band__btn, .contact__btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 34px 14px 18px;
  background: var(--white); color: var(--ink); text-decoration: none;
  border: var(--line) solid var(--ink); border-radius: 999px; box-shadow: 8px 8px 0 var(--ink);
  font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px);
  transition: transform .4s var(--ease-spring), box-shadow .2s ease;
}
.cta-band__btn img, .contact__btn img { width: 44px; height: auto; transition: transform .5s var(--ease-spring); }
.cta-band__btn:hover, .contact__btn:hover { transform: translate(-3px, -3px) rotate(-2deg); box-shadow: 11px 11px 0 var(--ink); }
.cta-band__btn:hover img, .contact__btn:hover img { transform: translateX(8px); }
.cta-band__btn:active, .contact__btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }

/* ---------- フッター ---------- */
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 36px var(--gutter); background: var(--ink); color: var(--white); }
.site-footer img { width: 168px; height: auto; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; font-size: 14px; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { color: var(--pink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape__track { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* スマホで最後の文字だけが次の行に落ちないように */
@media (max-width: 620px) {
  .digest-list a span { font-size: clamp(12px, 3.5vw, 15px); white-space: nowrap; }
  .cta-band__text { font-size: 6.2vw; white-space: nowrap; }
}

/* ---------- 相談フォーム ---------- */
.contact--form .contact__title { margin-bottom: clamp(28px, 4vw, 48px); }
.form {
  max-width: 760px; margin: 0 auto; padding: clamp(22px, 4vw, 44px);
  background: var(--white); color: var(--ink); text-align: left;
  border: var(--line) solid var(--ink); border-radius: var(--radius-l); box-shadow: 10px 10px 0 var(--ink);
}
.form__row { margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
.form__row > label, .form__topics legend { display: block; margin-bottom: 6px; font-weight: 900; }
.form__row em { margin-left: .6em; padding: .05em .6em; border-radius: 999px; background: var(--pink); color: var(--white); font-style: normal; font-size: 12px; vertical-align: .1em; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; padding: 12px 14px;
  border: var(--line) solid var(--ink); border-radius: 14px; background: var(--paper);
  font: inherit; color: inherit;
  transition: box-shadow .2s ease, background .2s ease;
}
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form textarea:focus { outline: none; background: var(--white); box-shadow: 5px 5px 0 var(--pink); }
.form [aria-invalid="true"] { border-color: var(--pink); background: var(--pink-soft); }
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form__topics { display: flex; flex-wrap: wrap; gap: 8px; }
.form__topics legend { width: 100%; }
.form__topics label { cursor: pointer; }
.form__topics input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form__topics span {
  display: inline-block; padding: .3em 1em; border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 700; font-size: 14px; transition: transform .25s var(--ease-spring), background .15s ease;
}
.form__topics input:checked + span { background: var(--ink); color: var(--white); transform: rotate(-3deg); }
.form__topics input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.6em; margin: 4px 0 16px; font-weight: 900; text-align: center; }
.form__status[data-kind="error"] { color: #d10f5a; }
.form__status[data-kind="done"] { color: var(--ink); }
.form__submit { display: flex; margin: 0 auto; cursor: pointer; }
.form__submit:disabled { opacity: .6; cursor: progress; }
@media (max-width: 620px) { .form__pair { grid-template-columns: 1fr; } }

/* ---------- プロフィール：これまで／個人で受けている仕事 ---------- */
.career, .side-works { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 7vw, 96px); }
.career__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 32px); margin-bottom: 1em; }
.career-list { position: relative; }
.career-list::before { content: ""; position: absolute; left: 39px; top: 12px; bottom: 12px; width: 3px; background: repeating-linear-gradient(180deg, var(--ink) 0 10px, transparent 10px 18px); }
.career-list li { position: relative; padding: 0 0 28px 108px; min-height: 80px; }
.career-list time {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 80px; height: 44px;
  border: var(--line) solid var(--ink); border-radius: 999px; background: var(--yellow);
  font-family: var(--font-en); font-weight: 900; font-size: 18px;
}
.career-list li:nth-child(2) time { background: var(--pink); color: var(--white); }
.career-list li:nth-child(3) time { background: var(--blue); color: var(--white); }
.career-list b { display: block; font-weight: 900; font-size: 1.12em; padding-top: 6px; }
.side-list { display: grid; gap: 14px; }
.side-list li { padding: 18px 22px; border: var(--line) solid var(--ink); border-radius: var(--radius-m); background: var(--white); box-shadow: 6px 6px 0 var(--ink); }
.side-list li:nth-child(odd) { transform: rotate(-.6deg); }
.side-list li:nth-child(even) { transform: rotate(.5deg); }
.side-list b { display: block; font-weight: 900; font-size: 1.08em; color: var(--pink); }
@media (max-width: 620px) {
  .career-list::before { left: 31px; }
  .career-list li { padding-left: 82px; }
  .career-list time { width: 64px; height: 38px; font-size: 15px; }
}

/* スマホ幅の読みやすさの調整（1文字だけ次の行に落ちる箇所など） */
@media (max-width: 620px) {
  .career-list b { font-size: 15px; }
  .origin__art { max-width: 240px; padding: 22px; }
  .faq summary { font-size: 15px; padding-right: 48px; }
}

/* ---------- 3本柱版：できること・入口・強み ---------- */
.service-list--three { grid-template-columns: repeat(3, 1fr); }
.service-list--three .service:nth-child(n) { grid-column: auto; margin-top: 0; }
.service-list--three .service:nth-child(1) { transform: rotate(-1.4deg); }
.service-list--three .service:nth-child(2) { transform: rotate(1.1deg); margin-top: 28px; }
.service-list--three .service:nth-child(3) { transform: rotate(-.8deg); }
.service-list--three .service:hover { transform: rotate(0) translateY(-6px); }
.service__price { margin: -.3em 0 1.1em; padding: 10px 14px; border: 2px dashed currentColor; border-radius: 14px; font-size: .9em; font-weight: 700; }
.service__price b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.3em; color: var(--ink); }
@media (max-width: 960px) {
  .service-list--three { grid-template-columns: 1fr; gap: 72px; max-width: 620px; }
  .service-list--three .service:nth-child(2) { margin-top: 0; }
}

.digest-list--three { grid-template-columns: repeat(3, 1fr); max-width: 1040px; }
.digest-list--three a span { font-size: 1.1em; }
.digest-list--three a small { font-weight: 700; font-size: 13px; color: #555; line-height: 1.6; }
.digest__note { margin-top: clamp(28px, 3vw, 40px); text-align: center; font-weight: 700; }
@media (max-width: 860px) {
  .digest-list--three { grid-template-columns: 1fr; max-width: 420px; }
  .digest-list--three li:last-child { grid-column: auto; }
  .digest-list--three li:nth-child(even) a { transform: rotate(1.5deg); }
  .digest-list--three a span { white-space: normal; font-size: 16px; }
}

.strengths { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 9vw, 120px); }
.strengths__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 40px); }
.strengths__lead { margin: .6em 0 1.6em; font-weight: 700; max-width: 40em; }
.strength-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.strength-list li { position: relative; padding: 22px 24px 24px 24px; border: var(--line) solid var(--ink); border-radius: var(--radius-m); background: var(--white); }
.strength-list img { width: 84px; height: auto; margin: -50px 0 6px auto; filter: drop-shadow(0 8px 8px rgba(22, 22, 22, .15)); }
.strength-list b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2em; margin-bottom: .3em; }
@media (max-width: 860px) { .strength-list { grid-template-columns: 1fr; gap: 40px; } .strengths { padding-top: 24px; } }
/* 3列だとカードが細く、アイコンが見出しに重なるので小さくして上へ逃がす */
.service-list--three .service { padding-top: clamp(118px, 10vw, 136px); }
.service-list--three .service__icon { width: clamp(112px, 9vw, 132px); top: -58px; }
