/* アーティストスクエア 公式ページ
   数値の出どころは DESIGN.md（色・文字・余白・形・動き）。ここで勝手に足さない。
   余白は 4・8・16・24・40・64・104 の段だけ。線は 枠（10/7）・小さい枠（7/5）・細い線（3）の3つ。 */

:root {
  --white: #FFFFFF;
  --cream: #FFF7E8;
  --ink: #14213D;
  --ink-weak: #5B6478;
  --red: #E5332A;
  --yellow: #FFC629;
  --blue: #1F5FD1;

  --line: 7px;          /* 四角い枠の線（スマホ） */
  --line-s: 5px;        /* 小さい四角の線 */
  --hair: 3px;          /* カード・区切りの細い線 */
  --ease: cubic-bezier(.2, .7, .2, 1);

  --f-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-en: "Unbounded", "Zen Kaku Gothic New", sans-serif;

  --fs-h2: clamp(24px, 1.55vw + 18.2px, 38px);     /* 節の見出し 24 → 38 */
  --fs-h3: clamp(19px, 0.33vw + 17.76px, 22px);    /* 小見出し 19 → 22 */
  --fs-quote: clamp(22px, 0.88vw + 18.7px, 30px);  /* 観客の言葉 22 → 30 */
  --fs-small: 13px;                                /* 小さい文字 13 → 14 */
  --gutter: 20px;
  --sec: 64px;                                     /* 節と節の間 64 → 104 */
}

@media (min-width: 768px) {
  :root {
    --line: 10px;
    --line-s: 7px;
    --fs-small: 14px;
    --gutter: 40px;
  }
}
@media (min-width: 1024px) {
  :root { --sec: 104px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) {
  body { font-size: 17px; }
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
strong { font-weight: 900; }
::selection { background: var(--yellow); color: var(--ink); }
.ph { display: inline-block; text-indent: 0; }
p, li, dd, figcaption { text-wrap: pretty; }

:focus-visible {
  outline: var(--hair) solid var(--blue);
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(1120px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 節ごとの1色 */
.c-red    { --c: var(--red);    --on-c: var(--white); }
.c-yellow { --c: var(--yellow); --on-c: var(--ink); }
.c-blue   { --c: var(--blue);   --on-c: var(--white); }

/* ---------- 文字 ---------- */
.h2 {
  font-size: var(--fs-h2);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .02em;
  word-break: auto-phrase;
  text-wrap: balance;
  margin: 16px 0 24px;
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .02em;
  word-break: auto-phrase;
}

/* 節の番号（小さい四角つき） */
.no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-en);
  font-weight: 700;
  font-size: var(--fs-small);
  line-height: 1;
  letter-spacing: .06em;
}
.no::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--c);
  border: var(--hair) solid var(--ink);
}

.sec { padding-block: var(--sec); }
.sec--cream { background: var(--cream); }
.sec p { max-width: 720px; }
.sec p + p { margin-top: 16px; }
.lead { margin-bottom: 40px; }
.after { margin-top: 40px; }

/* ---------- 頭 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: var(--hair) solid var(--ink);
}
.site-head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}
.wordmark {
  font-family: var(--f-en);
  font-weight: 800;
  font-size: var(--fs-small);
  letter-spacing: .04em;
  text-decoration: none;
  padding-block: 16px;
  white-space: nowrap;
}
/* 頭の相談ボタン（小さい。見た目は40px、押せる高さは上下に広げて48px） */
.head-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  background: var(--red);
  color: var(--white);
  border: var(--hair) solid var(--ink);
  border-radius: 12px;
  font-size: var(--fs-h3);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 200ms var(--ease);
}
.head-btn::before {
  content: "";
  position: absolute;
  inset: calc(-4px - var(--hair)) calc(-1 * var(--hair));
}
.head-btn:hover { background: var(--ink); }

@media (min-width: 768px) {
  .site-head__in { min-height: 64px; }
  .head-btn { min-height: 44px; padding: 0 24px; }
}

/* ---------- ボタン（相談の1つだけ） ---------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 64px;
  padding: 16px 24px;
  background: var(--red);
  color: var(--white);
  border: var(--hair) solid var(--ink);
  border-radius: 12px;
  font-weight: 900;
  font-size: var(--fs-h3);
  line-height: 1.4;
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.btn__main > span { display: inline-block; }
.btn__chip {
  display: inline-block;
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  padding: 0 4px;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(.98); }

@media (min-width: 768px) {
  .btn { width: auto; }
  .btn__main { white-space: nowrap; }
}
@media (min-width: 1280px) {
  .btn { flex-direction: row; gap: 16px; }
  .btn__chip { white-space: nowrap; }
}

/* ---------- 四角い枠と、中の丸 ---------- */
.sq {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--c);
  border: var(--line) solid var(--ink);
}
.sq__circle {
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: var(--line) solid var(--ink);
  background: var(--white);
  overflow: hidden;
}
.sq__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 1. 一番上 ---------- */
.hero { padding: 24px 0 40px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "eyebrow"
    "fig"
    "sub"
    "h1"
    "lede"
    "cta";
}
.hero__eyebrow {
  grid-area: eyebrow;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
  margin-bottom: 40px;
}
.hero__eyebrow span { display: inline-block; }

.hero__fig { grid-area: fig; }

/* 名前の札。四角の左上の角に重ねる */
.hero__name {
  grid-area: fig;
  align-self: start;
  justify-self: start;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: -16px 0 0 -8px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--white);
  transform: rotate(-3deg);
  transform-origin: left top;
}
.hero__name-gap { display: none; }
.hero__name-ja {
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
}
.hero__name-en {
  font-family: var(--f-en);
  font-weight: 800;
  font-size: var(--fs-quote);
  line-height: 1.4;
  letter-spacing: .02em;
  white-space: nowrap;
}

.hero__sub {
  grid-area: sub;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  margin-top: 24px;
}
.hero__h1 {
  grid-area: h1;
  font-size: min(8vw, 30px);   /* スマホ 30px。幅375未満だけ、3行に収めるために少し縮む */
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .02em;
  margin-top: 8px;
}
.hero__h1 .l { display: block; white-space: nowrap; }
.hero__h1 .mk {
  background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 92%, transparent 92%);
}
.hero__h1 .times { margin-left: .22em; color: var(--red); }
/* かっこ・読点の空きを詰める */
.q-open  { margin-left: -.42em; }
.q-close { margin-right: -.38em; }
.comma   { margin-right: -.5em; }
.q-end   { letter-spacing: -.48em; }

.hero__lede {
  grid-area: lede;
  margin-top: 16px;
  max-width: 600px;
}
.hero__cta {
  grid-area: cta;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .hero { padding: 40px 0; }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) clamp(260px, 34vw, 348px);
    column-gap: 40px;
    grid-template-areas:
      "eyebrow fig"
      "sub     fig"
      "h1      fig"
      "lede    fig"
      "cta     fig";
    grid-template-rows: auto auto auto auto 1fr;
  }
  .hero__eyebrow { margin-bottom: 0; }
  .hero__fig { align-self: start; margin-top: 16px; }
  .hero__name { margin: 0 0 0 -24px; }
  .hero__name-en { font-size: var(--fs-h3); }
  .hero__sub { margin-top: 16px; }
  .hero__h1 { font-size: clamp(30px, 4.4vw, 56px); margin-top: 8px; }
  .hero__lede { margin-top: 24px; }
  .hero__cta { margin-top: 40px; align-self: start; }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero__grid {
    grid-template-areas:
      "eyebrow fig"
      "sub     fig"
      "h1      fig"
      "lede    lede"
      "cta     cta";
    grid-template-rows: auto auto 1fr auto auto;
  }
  .hero__lede { max-width: 720px; }
}

@media (min-width: 1024px) {
  /* 四角を大きく。上の端を、小さい文字の行にそろえる */
  .hero__grid { grid-template-columns: minmax(0, 1fr) clamp(384px, 37.5vw, 456px); }
  .hero__name { padding: 16px 24px; margin: 0 0 0 -40px; }
  .hero__name-en { font-size: var(--fs-quote); }
}

/* ---------- 波打つ帯 ---------- */
.band {
  position: relative;
  z-index: 1;
  height: clamp(96px, 11.5vw, 152px);
  background: linear-gradient(to bottom, var(--from) 50%, var(--to) 50%);
  overflow: hidden;
}
.band svg {
  display: block;
  width: 100%;
  height: 100%;
}
.band__path {
  fill: none;
  stroke: var(--bc);
  stroke-width: 88;
}
.band__text {
  font-family: var(--f-en);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: 3px;
  fill: var(--bt);
}
.band--red    { --bc: var(--red);    --bt: var(--white); }
.band--yellow { --bc: var(--yellow); --bt: var(--ink); }
.band--blue   { --bc: var(--blue);   --bt: var(--white); }

/* ---------- 声（吹き出し）。細い弱い線＝冷たい声、太い紺の線＝温かい声 ---------- */
.bubble {
  --bw: var(--hair);
  --bcol: var(--ink);
  --tail: 16px;
  position: relative;
  background: var(--white);
  border: var(--bw) solid var(--bcol);
  border-radius: 12px;
  margin-bottom: 24px;
}
.bubble::after {           /* しっぽ */
  content: "";
  position: absolute;
  left: 40px;
  bottom: calc(var(--tail) / -2 - var(--bw));
  width: var(--tail);
  height: var(--tail);
  background: var(--white);
  border-right: var(--bw) solid var(--bcol);
  border-bottom: var(--bw) solid var(--bcol);
  transform: rotate(45deg);
}

.voices {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.voices li {
  max-width: 100%;
  font-weight: 700;
  line-height: 1.4;
}
/* 冷たい声（2の節）: 細い・弱い色 */
.voices--cold { margin: 24px 0; }
.voices--cold li {
  --bcol: var(--ink-weak);
  padding: 8px 16px 8px 8px;
  color: var(--ink-weak);
}
.voices--cold li:nth-child(2) { margin-left: 40px; }

/* 温かい声（10の節） */
.voices--warm { margin: 8px 0 16px; }
.voices--warm li {
  padding: 16px 24px 16px 16px;
  font-size: var(--fs-h3);
  font-weight: 900;
}
.voices--warm li:nth-child(2) { margin-left: 24px; }
.voices--warm li:nth-child(3) { margin-left: 8px; }

/* ---------- 2. 場所を探している ---------- */
.place {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "fig" "body";
}
.place__head { grid-area: head; }
.place__body { grid-area: body; }
.place__fig {
  grid-area: fig;
  width: min(88%, 340px);
  margin: 8px 0 40px;
}
/* 丸（人）はいるのに、四角（場所）が決まっていない */
.noplace {
  position: relative;
  aspect-ratio: 1 / .9;
}
.noplace__sq {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60%;
  aspect-ratio: 1;
  border: var(--line-s) dashed var(--c);
}
.noplace__circle {
  position: absolute;
  left: 0;
  top: 0;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: var(--line) solid var(--ink);
  background: var(--white);
  overflow: hidden;
}
.noplace__circle img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
  .place {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 64px;
    grid-template-areas:
      "head fig"
      "body fig";
    grid-template-rows: auto 1fr;
  }
  .place__fig {
    width: 100%;
    max-width: 440px;
    margin: 0;
    align-self: center;
    justify-self: end;
  }
}

/* ---------- 3. ありがとうに変わる場所 ---------- */
.thanks__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
.thanks__quotes {
  display: grid;
  gap: 24px;
  margin-top: 64px;
}
/* 幅の狭いスマホ（360未満）: 4の節の見出しを3行に収める */
@media (max-width: 359.98px) {
  #h-thanks { font-size: 22px; }
}
.thanks__fig figcaption {
  margin-top: 16px;
  font-size: var(--fs-small);
  color: var(--ink-weak);
  text-align: center;
}
.thx figcaption { margin-bottom: 16px; }
/* 観客の言葉。2の節の吹き出しと同じ形で、線を太く、字を大きく */
.thx blockquote {
  --bw: var(--line);
  --tail: 24px;
  padding: 24px;
}
.thx blockquote p {
  font-size: var(--fs-quote);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  word-break: auto-phrase;
}
.thx blockquote .ph:first-child { margin-left: -.45em; }

.thanks__turn {
  max-width: 720px;
  margin: 64px auto 0;
}
.turn { font-size: var(--fs-h3); }
.turn strong .ph {
  background: linear-gradient(to top, transparent 2px, var(--c) 2px, var(--c) 8px, transparent 8px);
}
.say {
  margin: 40px 0;
  padding: 24px;
  background: var(--cream);
  border-radius: 12px;
}
.say figcaption {
  margin-top: 16px;
  font-weight: 900;
  text-align: right;
}
.turn__end {
  font-size: var(--fs-h3);
  font-weight: 900;
  line-height: 1.4;
}

@media (min-width: 768px) {
  /* 写真は左に大きく */
  .thanks__top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: center;
  }
  .thanks__fig { order: -1; }
  /* 2つ横並び。前置きの行と吹き出しの行を、左右でそろえる */
  .thanks__quotes { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 0 40px; margin-top: 104px; }
  .thx { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
  .thx figcaption { align-self: end; }
  .thx blockquote { display: grid; align-content: center; }
  .say { padding: 40px; }
}
@media (min-width: 1024px) {
  .thx blockquote { padding: 40px; }
}

/* ---------- 4. 整えること ---------- */
/* 不安に答える3つ（知らせる・音・安全）は白いカード。残りの2つは線だけで軽く */
.prep {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
.card {
  background: var(--white);
  border: var(--hair) solid var(--ink);
  border-radius: 12px;
  padding: 24px;
}
.card .h3, .sub .h3 { margin-bottom: 8px; }
.prep-sub {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}
.sub {
  border-top: var(--hair) solid var(--ink);
  padding-top: 24px;
}
.cta-mid {
  margin-top: 64px;
  max-width: none !important;
  text-align: center;
}

@media (min-width: 768px) {
  /* 2列。3枚目は横いっぱいで、見出しを左・文を右に */
  .prep { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .card { padding: 40px; }
  .card:nth-child(3) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }
  .card:nth-child(3) .h3 { margin-bottom: 0; }
  .prep-sub { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
  .sub { padding-right: 40px; }
}

/* ---------- 5. 小さく始める ---------- */
.steps {
  display: grid;
  gap: 40px;
}
.step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
}
.step__sq {
  --s: 44px;
  justify-self: center;
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  background: var(--c);
  border: var(--line-s) solid var(--ink);
}
.step__sq i {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  border: var(--line-s) solid var(--ink);
}
.step--1 .step__sq i { border-width: var(--hair); }
.step--2 .step__sq { --s: 64px; }
.step--3 .step__sq { --s: 88px; }
.step__n {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  background: var(--c);
  color: var(--on-c);
  border: var(--hair) solid var(--ink);
  font-family: var(--f-en);
  font-weight: 800;
  font-size: var(--fs-small);
  line-height: 1;
  vertical-align: .12em;
}
.step .h3 { margin-bottom: 8px; }

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  .step { display: block; }
  /* 四角は同じ地面（線）の上に立って、段ごとに大きくなる */
  .step__sq {
    --s: 72px;
    justify-self: start;
    margin: calc(168px - var(--s)) 0 0;
  }
  .step--1 .step__sq i { border-width: var(--line-s); }
  .step--2 .step__sq { --s: 120px; }
  .step--3 .step__sq { --s: 168px; }
  .step__body {
    border-top: var(--hair) solid var(--ink);
    padding: 24px 40px 0 0;
  }
}

/* ---------- 2. めざす流れ（箱を並べる） ---------- */
/* 1と2（商店街・アーティスト）は横に並び、3で1つに合わさる。4から7は順につながる。
   次の節も生成りなので、下の余白は取らない（間は次の節の上の余白1つ分） */
.sec--loop { padding-bottom: 0; }
.loop {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 16px;
}
.loop__box {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border: var(--hair) solid var(--ink);
  border-radius: 12px;
}
.loop__box--half {
  grid-column: auto;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 8px;
  align-content: start;
}
.loop__box--join {
  background: var(--c);
  color: var(--on-c);
}
.loop__n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--c);
  color: var(--on-c);
  border: var(--hair) solid var(--ink);
  font-family: var(--f-en);
  font-weight: 800;
  font-size: var(--fs-small);
  line-height: 1;
}
.loop__box--join .loop__n { background: var(--white); color: var(--ink); }
.loop__t {
  font-size: var(--fs-h3);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .02em;
}
/* 次の箱への矢印（箱と箱の間の真ん中） */
.loop__box::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28px;
  translate: -50% 0;
  border: 8px solid transparent;
  border-top: 16px solid var(--ink);
  border-bottom: 0;
}
.loop__box:last-child::after { display: none; }
/* 幅の狭いスマホ（360未満）: 横に並ぶ2つの箱は、言葉の途中で折れないよう字と余白を1段小さく */
@media (max-width: 359.98px) {
  .loop__box--half { padding: 8px; }
  .loop__box--half .loop__t { font-size: 16px; }
}

@media (min-width: 768px) {
  .loop { gap: 40px 24px; }
  .loop__box { padding: 24px; }
}
@media (min-width: 1200px) {
  /* 4から7は横1列。矢印は右向き */
  .loop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .loop__box--half { grid-column: span 2; grid-template-columns: 32px minmax(0, 1fr); }
  .loop__box--row {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
    align-content: start;
  }
  /* 3の下の矢印は、次の4の箱（4列の1つ目）の真上に */
  .loop__box--join::after { left: calc((100% - 72px) / 8); }
  .loop__box--row::after {
    left: auto;
    right: -20px;
    bottom: auto;
    top: 50%;
    translate: 0 -50%;
    border: 8px solid transparent;
    border-left: 16px solid var(--ink);
    border-right: 0;
  }
}

/* ---------- 7. 沖縄から、全国へ ---------- */
.towns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-block: 40px;
}
/* これからの四角は破線（このページでは、破線＝まだ無い）。最初の1つだけ、線と色で描く */
.town {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: var(--hair) dashed var(--c);
}
.town i {
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: var(--hair) dashed var(--c);
}
.town:first-child {
  background: var(--c);
  border: var(--line-s) solid var(--ink);
}
.town:first-child i {
  background: var(--white);
  border: var(--line-s) solid var(--ink);
}
/* 動き②: 1つ → 3つ → たくさん（1回だけ。JSが .anim を付けた時だけ隠す） */
.towns.anim .town {
  opacity: 0;
  transform: scale(.6);
}
.towns.anim.is-in .town {
  opacity: 1;
  transform: none;
  transition: opacity 600ms var(--ease) var(--d), transform 600ms var(--ease) var(--d);
}

@media (min-width: 768px) {
  .towns {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
    margin-block: 64px;
  }
}

/* ---------- 8. 運営 ---------- */
.who {
  display: grid;
  gap: 64px;
}
.org {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.org > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  align-items: baseline;
}
.org dt {
  padding: 0 8px;
  border: var(--hair) solid var(--ink);
  background: var(--white);
  font-size: var(--fs-small);
  font-weight: 900;
  line-height: 1.9;
  white-space: nowrap;
}
.org dd {
  font-weight: 900;
  line-height: 1.4;
}
.facts {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.facts li {
  position: relative;
  padding-left: 24px;
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 12px;
  height: 12px;
  background: var(--c);
  border: var(--hair) solid var(--ink);
}
/* 大事な数字 */
.num {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--f-en);
  font-weight: 800;
  font-size: var(--fs-quote);
  line-height: 1;
  letter-spacing: 0;
  margin-inline: 4px;
}

.who__rep {
  background: var(--white);
  border: var(--hair) solid var(--ink);
  border-radius: 12px;
  padding: 24px;
}
.rep__fig {
  width: min(64%, 240px);
  margin-bottom: 24px;
}
.sq--open { background: var(--white); }
.sq__disc {
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c);
  border: var(--line) solid var(--ink);
}
/* 切り抜きの写真は、枠の上へはみ出す（下と左右は枠で切る） */
.sq__cut {
  position: absolute;
  inset: 0;
  clip-path: inset(-40% 0 0 0);
}
.sq__cut img {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 118%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}
.rep__name { margin-bottom: 8px; }
.rep__body .facts { margin: 0 0 24px; }

@media (min-width: 768px) {
  /* 写真を右上に寄せて、経歴の文を回り込ませる */
  .who__rep { display: flow-root; padding: 40px; }
  .rep__fig {
    float: right;
    width: 240px;
    margin: 0 0 24px 40px;
  }
  .rep__name { margin: 0 0 16px; }
}
@media (min-width: 1024px) {
  .who {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 40px;
    align-items: start;
  }
  /* 2列で幅が狭い間は、回り込みをやめて写真を上に置く */
  .rep__fig { float: none; margin: 0 0 24px; }
}
@media (min-width: 1280px) {
  .rep__fig { float: right; width: 200px; margin: 0 0 24px 24px; }
}

/* ---------- 9. よくあるご質問 ---------- */
.qa {
  padding-block: 24px;
  border-top: var(--hair) solid var(--ink);
}
.qa:last-child { border-bottom: var(--hair) solid var(--ink); }
.qa .h3 {
  position: relative;
  padding-left: calc(1em + 16px);
  margin-bottom: 8px;
}
.qa .h3::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--f-en);
  font-weight: 800;
  color: var(--c);
}
.qa p { padding-left: calc(var(--fs-h3) + 16px); }

@media (min-width: 1024px) {
  .faq {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 24px;
    align-items: start;
  }
  .faq__head { position: sticky; top: 104px; }
  .qa { padding-block: 40px; }
}

/* ---------- 10. 相談 ---------- */
.ask__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
/* 空いている四角。次は、あなたのまち */
.ask__fig {
  order: -1;
  width: min(56%, 220px);
  margin-bottom: 40px;
}
.sq--empty .sq__circle { border-style: dashed; }
.ask__text { margin-bottom: 24px; }
.ask__note {
  margin-top: 24px;
  font-size: var(--fs-small);
  color: var(--ink-weak);
}

@media (min-width: 768px) {
  .ask__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 64px;
    align-items: center;
  }
  .ask__fig { order: 0; width: 100%; max-width: 440px; margin: 0; justify-self: end; }
}

/* ---------- 足元 ---------- */
.foot {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0 40px;
}
/* 名前を大きく組む（ロゴの代わりの文字。幅いっぱい） */
.foot__mark {
  font-family: var(--f-en);
  font-weight: 800;
  font-size: clamp(26px, 8.2vw, 108px);
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.foot__info {
  margin-top: 40px;
  font-size: var(--fs-small);
}
.foot__name { font-weight: 900; }
.foot__info a, .foot__corp a { text-underline-offset: 4px; }
/* 運営の会社は一番下に1行。上に細い線で区切り、会社のサイトへつなぐ */
.foot__corp {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  font-size: var(--fs-small);
  font-weight: 700;
}

@media (min-width: 768px) {
  .foot { padding: 104px 0 64px; }
  .foot__info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 40px;
    align-items: baseline;
  }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .towns.anim .town { opacity: 1; transform: none; }
}

@media print {
  .site-head { position: static; }
  .band { display: none; }
  .towns.anim .town { opacity: 1; transform: none; }
}
