@charset "UTF-8";

/************************************************************************
* 創造文化圏とは
* 数値は PSD 保存値＋カンプのピクセル実測（実寸 = カンプ@2x ÷ 2、画面幅 2046px で等倍）
* 縦位置は plan.md「PSD の bbox はグリフ上端」の補正
*   box_top = glyph_top - (line-height - font-size)/2 - font-size * 0.08
* を通した値から逆算している。
************************************************************************/

/*------------------------------------------------------------------
ヒーロー
--------------------------------------------------------------------*/

/* メインバナーを絶対配置するための基準。
   flow-root はタイトルの margin-top がセクション外へ抜けるのを防ぐため */
.fantasia-ccz-hero {
  position: relative;
  display: flow-root;
}

/* 見出し・飾り文字・小見出しはカンプの中心線 x=429.5 で中央揃え
   （幅はブラウザで組んだページタイトルが折り返さない 700 を確保） */
.fantasia-ccz-hero__head {
  width: 36.31%;
  margin-left: 1.06%;
  text-align: center;
}

.fantasia-ccz-hero__title {
  margin: clamp(62px, 6.452vw, 132px) 0 0;
  color: var(--fantasia-sub-purple);
  font-size: var(--fantasia-sub-fz-title);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

/* lead.png（英字ロゴ体＋飾り罫）は見出し桁の 70.29%（実寸 492 / 700） */
.fantasia-ccz-hero__lead {
  width: 70.29%;
  margin: clamp(19px, 2.004vw, 41px) auto 0;
  line-height: 0;
}

.fantasia-ccz-hero__lead img {
  width: 100%;
  height: auto;
}

.fantasia-ccz-hero__subtitle {
  margin: clamp(22px, 2.283vw, 47px) 0 0;
  color: var(--fantasia-sub-purple);
  font-size: clamp(18px, 1.711vw, 35px);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.43;
}

/* リード文だけ左揃え（カンプ x=164 = 見出し桁の左から 12.07%） */
.fantasia-ccz-hero__text {
  margin: clamp(44px, 4.687vw, 96px) 0 0 12.07%;
  font-size: var(--fantasia-sub-fz-text);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.74;
  text-align: left;
}

/* メインバナーは右端が画面の端まで到達する（カンプ x=834〜2046） */
.fantasia-ccz-hero__visual {
  position: absolute;
  top: clamp(5px, 0.538vw, 11px);
  right: 0;
  width: 59.24%;
  max-width: 1212px;
  line-height: 0;
}

.fantasia-ccz-hero__visual img {
  width: 100%;
  height: auto;
}

/*------------------------------------------------------------------
本文
--------------------------------------------------------------------*/

.fantasia-ccz-body {
  margin-top: clamp(62px, 6.5vw, 133px);
}

.fantasia-ccz-body__heading {
  padding-left: clamp(3px, 0.293vw, 6px);
  color: var(--fantasia-sub-purple);
  font-size: clamp(20px, 1.711vw, 35px);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.43;
}

.fantasia-ccz-body__heading::before {
  content: '◆';
  margin-right: 0.6em;
}

.fantasia-ccz-body__subheading,
.fantasia-ccz-body__quote {
  margin: 0;
  padding-left: clamp(6px, 0.635vw, 13px);
  color: var(--fantasia-sub-purple);
  font-size: var(--fantasia-sub-fz-subheading);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.67;
}

.fantasia-ccz-body__subheading::before {
  content: '・';
}

/* 引用行は先頭が「のためカンプ上の字面が右へ寄る */
.fantasia-ccz-body__quote {
  padding-left: clamp(9px, 0.978vw, 20px);
}

.fantasia-ccz-body .fantasia-sub-text {
  font-weight: 600;
}

/* 見出し・本文の間隔はカンプ上で 1 つずつ違うため実測値で個別に当てる
   （値は実寸 px。ブロック内の並び順は HTML の順序と一致）
   1 見出し / 2 本文 / 3 引用 / 4 本文 / 5 4カラム / 6 本文 / 7 循環図 / 8 本文 / 9 枠 / 10 結び */
.fantasia-ccz-body__block > * + * {
  margin-top: clamp(14px, 1.466vw, 30px);
}

.fantasia-ccz-body__block > .fantasia-sub-heading + .fantasia-sub-text {
  margin-top: clamp(20px, 2.049vw, 42px);
}

.fantasia-ccz-body__block > :nth-child(3) {
  margin-top: clamp(16px, 1.703vw, 35px);
}

.fantasia-ccz-body__block > :nth-child(5) {
  margin-top: clamp(21px, 2.199vw, 45px);
}

.fantasia-ccz-body__block > :nth-child(6) {
  margin-top: clamp(20px, 2.102vw, 43px);
}

.fantasia-ccz-body__block > :nth-child(7) {
  margin-top: clamp(28px, 2.884vw, 59px);
}

.fantasia-ccz-body__block > :nth-child(8) {
  margin-top: clamp(25px, 2.688vw, 55px);
}

.fantasia-ccz-body__block > :nth-child(9) {
  margin-top: clamp(28px, 2.835vw, 58px);
}

.fantasia-ccz-body__block > :nth-child(10) {
  margin-top: clamp(39px, 4.106vw, 84px);
}

/* 結びの一文は本文より大きく中央揃え（PSD 実値 28.4px / 行送り 1.408 / ls .03em） */
.fantasia-ccz-body__closing {
  margin: 0;
  font-size: clamp(16px, 1.388vw, 28.4px);
  letter-spacing: 0.03em;
  line-height: 1.408;
  text-align: center;
}

/*------------------------------------------------------------------
4 つの特長（アイコン + 見出し + 本文の 4 カラム）
--------------------------------------------------------------------*/

/* カンプ幅 1661（縦罫線の間隔 415.25 x 4）/ ブロック内寸 1868 = 88.92% */
.fantasia-ccz-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(88.92%, 1661px);
  margin-inline: auto;
  padding: 0;
  list-style: none;
}

/* 縦罫線はカンプ上でアイコンの上・本文の下へ少しはみ出す */
.fantasia-ccz-features__item {
  padding-top: clamp(8px, 0.831vw, 17px);
  padding-bottom: clamp(22px, 2.297vw, 47px);
  text-align: center;
}

.fantasia-ccz-features__item + .fantasia-ccz-features__item {
  border-left: 1px solid #bfb7b1;
}

/* アイコンは高さの違うものが下辺で揃う（カンプ y=2352 で一致）。
   高さは 1 カラム幅に対する比（最も背の高い 1 番目 = 26.69%）で確保する。
   固定 px にするとカラムが広がる幅で画像がはみ出す */
.fantasia-ccz-features__icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1 / 0.2669;
  margin: 0;
}

.fantasia-ccz-features__icon picture {
  display: block;
}

.fantasia-ccz-features__icon img {
  display: block;
  width: 100%;
  height: auto;
}

/* 幅はカンプ実測（1 カラム 415.25 に対する比） */
.fantasia-ccz-features__item:nth-child(1) .fantasia-ccz-features__icon picture {
  width: 31.14%;
}

.fantasia-ccz-features__item:nth-child(2) .fantasia-ccz-features__icon picture {
  width: 34.56%;
}

.fantasia-ccz-features__item:nth-child(3) .fantasia-ccz-features__icon picture {
  width: 31.31%;
}

.fantasia-ccz-features__item:nth-child(4) .fantasia-ccz-features__icon picture {
  width: 23.60%;
}

/* 見出しは 1 行でも 2 行でも中心線が揃う（カンプ y=2458）。2 行分の高さを確保して中央寄せ */
.fantasia-ccz-features__title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.34em;
  margin: clamp(11px, 1.173vw, 24px) 0 0;
  color: var(--fantasia-sub-purple);
  font-size: var(--fantasia-sub-fz-subheading);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.67;
}

/* 本文はカラム内で中央に置き、字面は左揃え
   幅は PSD のテキストボックス実値 342.7 / 1 カラム 415.25 = 82.53% */
.fantasia-ccz-features__text {
  width: min(82.53%, 343px);
  margin: clamp(10px, 0.978vw, 20px) auto 0;
  line-break: strict;
  text-align: left;
}

/*------------------------------------------------------------------
創造の循環（円 5 つ + 矢印）
--------------------------------------------------------------------*/

/* カンプ幅 1421 / ブロック内寸 1868 = 76.06%。
   ただし画面が狭いと 76.06% では円が痩せてラベルが入らないため 800px の下限を置く
   （枠を超えないよう 100% で頭打ち）。2046px 時は従来どおり 1421px */
.fantasia-ccz-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, max(76.06%, 800px));
  margin-inline: auto;
  padding: 0;
  list-style: none;
}

/* 円 196 / 1421 = 13.79% */
.fantasia-ccz-flow__item {
  position: relative;
  width: 13.79%;
}

.fantasia-ccz-flow__item img {
  display: block;
  width: 100%;
  height: auto;
}

/* 矢印は円と円のあいだ（カンプ 31 x 30・間隔の中央） */
.fantasia-ccz-flow__item + .fantasia-ccz-flow__item::before {
  position: absolute;
  top: 50%;
  right: 100%;
  width: clamp(15px, 1.515vw, 31px);
  height: clamp(14px, 1.466vw, 30px);
  margin-right: clamp(20px, 2.053vw, 42px);
  background: url(../img/ccz/flow_arrow.png) center / contain no-repeat;
  transform: translateY(-50%);
  content: '';
}

/* ラベルは円の中（カンプ上端から 63.5%）。
   文字が乗る高さ（上端から約77%）では円の幅は直径の 82% しかないため、
   共通の --fantasia-sub-fz-subheading（下限 18px）だと中間幅で円からはみ出す。
   傾き（1.466vw）と上限（30px＝カンプ実測）は共通変数と同じにし、下限だけ下げて
   円と一緒に縮むようにする */
.fantasia-ccz-flow__label {
  position: absolute;
  top: 63.5%;
  right: 0;
  left: 0;
  color: var(--fantasia-sub-purple);
  font-size: clamp(14px, 1.466vw, 30px);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.67;
  text-align: center;
}

/*------------------------------------------------------------------
まとめ（面取りの枠 + 角飾り + 桜）
--------------------------------------------------------------------*/

/* カンプ幅 1672 / ブロック内寸 1868 = 89.5%。角は丸ではなく斜めの切り欠き（13 x 11） */
.fantasia-ccz-note {
  --fantasia-ccz-note-chamfer-x: clamp(6px, 0.635vw, 13px);
  --fantasia-ccz-note-chamfer-y: clamp(5px, 0.538vw, 11px);

  position: relative;
  width: min(89.5%, 1672px);
  margin-inline: auto;
  padding: clamp(28px, 2.884vw, 59px) clamp(14px, 1.955vw, 40px) clamp(28px, 2.933vw, 60px);
}

/* 枠線は 1px。外周と内周を evenodd で抜いて面取りの斜辺まで描く */
.fantasia-ccz-note::before {
  position: absolute;
  inset: 0;
  background: #aea39c;
  clip-path: polygon(evenodd,
    0 var(--fantasia-ccz-note-chamfer-y),
    var(--fantasia-ccz-note-chamfer-x) 0,
    calc(100% - var(--fantasia-ccz-note-chamfer-x)) 0,
    100% var(--fantasia-ccz-note-chamfer-y),
    100% calc(100% - var(--fantasia-ccz-note-chamfer-y)),
    calc(100% - var(--fantasia-ccz-note-chamfer-x)) 100%,
    var(--fantasia-ccz-note-chamfer-x) 100%,
    0 calc(100% - var(--fantasia-ccz-note-chamfer-y)),
    1px calc(var(--fantasia-ccz-note-chamfer-y) + 0.6px),
    calc(var(--fantasia-ccz-note-chamfer-x) + 0.7px) 1px,
    calc(100% - var(--fantasia-ccz-note-chamfer-x) - 0.7px) 1px,
    calc(100% - 1px) calc(var(--fantasia-ccz-note-chamfer-y) + 0.6px),
    calc(100% - 1px) calc(100% - var(--fantasia-ccz-note-chamfer-y) - 0.6px),
    calc(100% - var(--fantasia-ccz-note-chamfer-x) - 0.7px) calc(100% - 1px),
    calc(var(--fantasia-ccz-note-chamfer-x) + 0.7px) calc(100% - 1px),
    1px calc(100% - var(--fantasia-ccz-note-chamfer-y) - 0.6px));
  content: '';
}

.fantasia-ccz-note__ornament,
.fantasia-ccz-note__flower {
  position: absolute;
  height: auto;
}

/* 角飾りは枠の内側・上の角に沿う（カンプ 55 / 1672 = 3.313%） */
.fantasia-ccz-note__ornament {
  top: 0.103vw;
  width: 3.313%;
}

.fantasia-ccz-note__ornament--left {
  left: 0.167%;
}

.fantasia-ccz-note__ornament--right {
  right: 0.126%;
}

/* 桜は下の角で枠の外側へはみ出す（カンプ実測） */
.fantasia-ccz-note__flower--left {
  bottom: -2.014vw;
  left: -3.738%;
  width: 19.97%;
}

.fantasia-ccz-note__flower--right {
  right: -4.718%;
  bottom: -2.708vw;
  width: 20.05%;
}

/* 枠内の文は本文より大きい（PSD 実値 32.7px / 行送り 1.957）
   字送りは PSD で 0.05em だが、カンプは Photoshop の約物半角で「」が詰まっている
   （この文だけ「」が 6 つあり影響が大きい）。ブラウザでは約物が全角のままのため、
   0.05em → 行幅 1483 / 0em → 1403 に対しカンプは 1444。実測から 0.026em を採る。
   左右の余白はカンプ実測 77 だが、それだと 2 行目が溢れるため折り返し幅として 40 に広げる。
   文は中央揃えのため、見た目の余白は行の実幅で決まりカンプと変わらない */
.fantasia-ccz-note__text {
  position: relative;
  margin: 0;
  color: var(--fantasia-sub-purple);
  font-size: clamp(17px, 1.598vw, 32.7px);
  font-weight: 600;
  letter-spacing: 0.026em;
  line-height: 1.957;
  text-align: center;
}

/*------------------------------------------------------------------
CTA（btn.png が地。文字はテキストで乗せる）
--------------------------------------------------------------------*/

.fantasia-ccz-cta {
  /* カンプ幅 1043 / 1928 = 54.1% */
  width: 54.1%;
  max-width: 1043px;
  margin: clamp(21px, 2.151vw, 44px) auto 0;
}

.fantasia-ccz-cta__link {
  position: relative;
  display: block;
  text-decoration: none;
  transition: filter 180ms ease;
}

/* 既存 .fantasia-card__link と同じホバー表現に揃える（カンプに指定はないがサイトの作法） */
.fantasia-ccz-cta__link:hover,
.fantasia-ccz-cta__link:focus-visible {
  filter: brightness(1.05) drop-shadow(0 3px 3px rgb(84 55 29 / 22%));
  outline: none;
}

.fantasia-ccz-cta__link img {
  display: block;
  width: 100%;
  height: auto;
}

.fantasia-ccz-cta__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(16px, 2.444vw, 50px);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
}

/*------------------------------------------------------------------
狭い画面
--------------------------------------------------------------------*/

@media (max-width: 1050px) {
  .fantasia-ccz-hero__head {
    width: auto;
    margin-left: 0;
  }

  .fantasia-ccz-hero__lead {
    max-width: 492px;
  }

  .fantasia-ccz-hero__text {
    margin-left: 0;
    text-align: center;
  }

  /* メインバナーは画面幅いっぱいで見出しの下へ */
  .fantasia-ccz-hero__visual {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: clamp(24px, 3.2vw, 40px);
  }

  /* 4 カラムは 2 列へ。仕切りは列の左と行の上に付け替える。
     見出しの字は 1050px 以下で 18px 固定になり、最長行「見せる場所、売る場所、」に
     208px 要る。4 カラムだと 1 カラム 213px しかなく折り返すため、ここで 2 列に落とす */
  .fantasia-ccz-features {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .fantasia-ccz-features__item + .fantasia-ccz-features__item {
    border-left: none;
  }

  .fantasia-ccz-features__item:nth-child(even) {
    border-left: 1px solid #bfb7b1;
  }

  .fantasia-ccz-features__item:nth-child(n + 3) {
    padding-top: clamp(18px, 3.2vw, 26px);
    border-top: 1px solid #bfb7b1;
  }

  .fantasia-ccz-features__text {
    width: min(88%, 332px);
  }

  /* 循環図は横並びのまま。円の比率だけ 13.79% → 15% に上げてラベルを収める
     （768px では円 105px。切り替え前後で 110→120px と段差が出ないよう調整） */
  .fantasia-ccz-flow__item {
    width: 15%;
  }

  .fantasia-ccz-flow__item + .fantasia-ccz-flow__item::before {
    width: 16%;
    height: auto;
    aspect-ratio: 44 / 43;
    margin-right: 12.85%;
  }

}

@media (max-width: 760px) {
  /* 循環図が縦積み・中央寄せになる幅では、前後の文も図の下で中央に置く。
     字面は左揃えのまま、ブロックごと中央へ寄せる（text-align: center にすると
     狭い幅で行がばらつき、375px では横幅も使い切れないため）。
     width: fit-content により、収まる幅では中央・入りきらない幅では全幅に自動で切り替わる。
     6 番目＝「それぞれ別々だったものを…」／8 番目＝「という、創造の循環を…」 */
  .fantasia-ccz-body__block > :nth-child(6),
  .fantasia-ccz-body__block > :nth-child(8) {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  /* 循環図は縦積み。矢印は下向きへ回す。
     横並びはラベル「誰かに届く」が円に収まる 1050px 以上でしか成立しない
     （900px では円 86px に対しラベル 95px で溢れる） */
  .fantasia-ccz-flow {
    width: min(44%, 170px);
    flex-direction: column;
    gap: clamp(42px, 11vw, 54px);
  }

  .fantasia-ccz-flow__item {
    width: 100%;
  }

  /* 縦積みでは円が 147〜170px と大きいため、ラベルもそれに見合う大きさへ */
  .fantasia-ccz-flow__label {
    font-size: clamp(18px, 4.8vw, 24px);
  }

  .fantasia-ccz-flow__item + .fantasia-ccz-flow__item::before {
    top: auto;
    right: auto;
    bottom: 100%;
    left: 50%;
    width: clamp(18px, 6.1vw, 27px);
    height: clamp(17px, 5.8vw, 26px);
    margin-right: 0;
    margin-bottom: clamp(10px, 2.7vw, 14px);
    transform: translateX(-50%) rotate(90deg);
  }

  .fantasia-ccz-note {
    width: 100%;
  }

  .fantasia-ccz-hero__text {
    text-align: left;
  }

  .fantasia-ccz-hero__text br {
    display: none;
  }

  /* 比例縮小のままだとボタンが押せない大きさになるため下限を持たせる */
  .fantasia-ccz-cta {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 520px) {
  /* 4 カラムは 1 列へ */
  .fantasia-ccz-features {
    grid-template-columns: 1fr;
  }

  .fantasia-ccz-features__item:nth-child(even) {
    border-left: none;
  }

  .fantasia-ccz-features__item + .fantasia-ccz-features__item {
    padding-top: clamp(18px, 3.2vw, 26px);
    border-top: 1px solid #bfb7b1;
  }

  /* 1 列では各項目が単独なので、見出しの 2 行分の高さ確保は不要 */
  .fantasia-ccz-features__title {
    min-height: 0;
  }
}
