:root {
  --cream: #fffaf0;
  --blue: #5bc0eb;
  --blue-dark: #0798dc;
  --navy: #17284d;
  --yellow: #ffe56b;
  --pink: #ff6b8b;
  --green: #6dddba;
  --white: #ffffff;
  --line: 3px solid var(--navy);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--cream);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* ヘッダー */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: var(--line);
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(12px);
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.22rem;
  font-weight: 900;
}

.logo img {
  width: 40px;
}

.logo span {
  color: var(--blue-dark);
}

.links {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 0.84rem;
  font-weight: 900;
}

.links a {
  position: relative;
}

.links a:not(.order)::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -5px;
  left: 0;
  height: 3px;
  background: var(--pink);
  transition: right 0.2s;
}

.links a:hover::after {
  right: 0;
}

/* ボタン */

.order,
.pop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: var(--line);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--navy);
  font-weight: 900;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}

.order:hover,
.pop-btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--navy);
}

.pop-btn.blue {
  background: var(--blue);
}

.pop-btn.white {
  background: var(--white);
}

/* メインビジュアル */

.hero {
  position: relative;
  min-height: 730px;
  padding: 72px 0 85px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: var(--line);
  border-radius: 50%;
  opacity: 0.16;
}

.hero::before {
  top: 70px;
  left: -230px;
  width: 420px;
  height: 420px;
}

.hero::after {
  right: -140px;
  bottom: -80px;
  width: 300px;
  height: 300px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 30px;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  transform: rotate(-2deg);
}

.label i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
}

h1 {
  margin: 27px 0 22px;
  font-size: clamp(3.7rem, 7.8vw, 7.9rem);
  font-weight: 900;
  line-height: 0.97;
  letter-spacing: -0.085em;
}

.word {
  display: inline-block;
  animation: rise 0.7s both;
}

.word:nth-child(2) {
  animation-delay: 0.1s;
}

.word:nth-child(4) {
  animation-delay: 0.2s;
}

.scribble {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: var(--blue-dark);
}

.scribble::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 5px;
  left: -7px;
  z-index: -1;
  height: 0.18em;
  border-radius: 50%;
  background: var(--yellow);
  transform: rotate(-2deg);
}

.hero-text {
  max-width: 560px;
  color: #445574;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 29px;
}

/* メイン画像 */

.hero-art {
  position: relative;
  height: 550px;
}

.case-card {
  position: absolute;
  inset: 30px 40px 10px 35px;
  overflow: hidden;
  border: var(--line);
  border-radius: 40px;
  background: var(--white);
  box-shadow: 12px 12px 0 var(--navy);
  transform: rotate(3deg);
  animation: bob 5s ease-in-out infinite;
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mascot {
  position: absolute;
  right: -20px;
  bottom: -20px;
  z-index: 4;
  width: 220px;
  filter: drop-shadow(8px 12px 0 #ffffff);
}

.talk {
  position: absolute;
  top: 0;
  right: -6px;
  z-index: 5;
  width: 200px;
  padding: 17px;
  border: var(--line);
  border-radius: 22px 22px 4px 22px;
  background: var(--white);
  font-weight: 900;
  line-height: 1.45;
  transform: rotate(4deg);
}

.talk span {
  color: var(--blue-dark);
}

.star {
  position: absolute;
  bottom: 45px;
  left: -5px;
  z-index: 3;
  display: grid;
  width: 105px;
  height: 105px;
  place-items: center;
  background: var(--pink);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
  clip-path: polygon(
    50% 0,
    61% 27%,
    85% 15%,
    73% 39%,
    100% 50%,
    73% 61%,
    85% 85%,
    61% 73%,
    50% 100%,
    39% 73%,
    15% 85%,
    27% 61%,
    0 50%,
    27% 39%,
    15% 15%,
    39% 27%
  );
  animation: spin 18s linear infinite;
}

/* 流れる文字 */

.ticker {
  overflow: hidden;
  border-block: var(--line);
  background: var(--navy);
  color: var(--white);
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  min-width: max-content;
  gap: 35px;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  animation: marquee 18s linear infinite;
}

.ticker b {
  color: var(--yellow);
}

/* 共通セクション */

section {
  padding: 110px 0;
}

.sec-title {
  margin-bottom: 48px;
  text-align: center;
}

.kicker {
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.sec-title h2 {
  margin: 8px 0 10px;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 1.15;
  letter-spacing: -0.06em;
}

.sec-title p {
  margin: 0;
  color: #52617b;
}

/* 特徴 */

.what-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
}

.feature-photo {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border: var(--line);
  border-radius: 32px;
  box-shadow: 10px 10px 0 var(--navy);
}

.feature-photo > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-mascot {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 95px;
  padding: 10px;
  border: var(--line);
  border-radius: 50%;
  background: var(--white);
}

.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  padding: 28px;
  border: var(--line);
  border-radius: 26px;
  background: var(--white);
  transition: transform 0.25s;
}

.feature:hover {
  transform: translateY(-5px) rotate(-2deg);
}

.feature:nth-child(2) {
  background: var(--yellow);
}

.feature:nth-child(3) {
  background: var(--blue);
}

.feature:nth-child(4) {
  background: #ffebf0;
}

.feature .n {
  font-size: 0.72rem;
  font-weight: 900;
}

.feature h3 {
  margin: auto 0 8px;
  font-size: 1.45rem;
  line-height: 1.35;
}

.feature p {
  margin: 0;
  color: #455574;
  font-size: 0.87rem;
}

/* 作り方 */

.choice-section {
  border-block: var(--line);
  background: var(--blue);
}

.choice-section .kicker {
  color: var(--navy);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.choice {
  position: relative;
  display: flex;
  min-height: 410px;
  flex-direction: column;
  padding: 36px;
  overflow: hidden;
  border: var(--line);
  border-radius: 30px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--navy);
}

.choice:nth-child(2) {
  background: var(--yellow);
}

.choice-tag {
  align-self: flex-start;
  padding: 6px 11px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.choice h3 {
  margin: 24px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.25;
}

.choice p {
  max-width: 410px;
  color: #4b5870;
}

.choice ul {
  margin: 8px 0 25px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.choice li::before {
  content: "◎";
  margin-right: 9px;
  color: var(--blue-dark);
}

.choice a {
  align-self: flex-start;
  margin-top: auto;
  padding: 12px 18px;
  border: var(--line);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
}

.choice-emoji {
  position: absolute;
  right: 24px;
  bottom: 22px;
  font-size: 5rem;
  opacity: 0.13;
  transform: rotate(-10deg);
}

/* 制作イメージ */

.gallery {
  overflow: hidden;
}

.gallery-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.9fr;
  gap: 17px;
}

.shot {
  position: relative;
  height: 430px;
  margin: 0;
  overflow: hidden;
  border: var(--line);
  border-radius: 26px;
  background: var(--white);
}

.shot:nth-child(2) {
  transform: translateY(42px) rotate(2deg);
}

.shot:nth-child(3) {
  transform: rotate(-2deg);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.shot:hover img {
  transform: scale(1.06) rotate(1deg);
}

.shot figcaption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 7px 12px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
}

/* 依頼の流れ */

.flow-section {
  border-block: var(--line);
  background: var(--yellow);
}

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  padding: 30px;
  border: var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 7px 7px 0 var(--navy);
}

.step b {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: var(--line);
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
}

.step h3 {
  font-size: 1.25rem;
}

.step p {
  color: #55617a;
  font-size: 0.88rem;
}

/* 最後の案内 */

.last {
  position: relative;
  overflow: hidden;
  background: var(--blue-dark);
  color: var(--white);
  text-align: center;
}

.mascot-last {
  width: 150px;
  margin: 0 auto 15px;
  filter: drop-shadow(5px 7px 0 rgba(255, 255, 255, 0.33));
}

.last h2 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: 1.16;
  letter-spacing: -0.06em;
}

.last p {
  color: #dff6ff;
}

.last .pop-btn {
  background: var(--yellow);
  color: var(--navy);
}

/* フッター */

footer {
  padding: 31px 0;
  background: var(--navy);
  color: #91a6ca;
  font-size: 0.74rem;
}

/* デザイン一覧ボタン */

.back {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  padding: 11px 16px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--navy);
  font-size: 0.74rem;
  font-weight: 900;
}

/* スクロール表示 */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s,
    transform 0.65s;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* アニメーション */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(45px) rotate(2deg);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bob {
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* タブレット */

@media (max-width: 860px) {
  .links a:not(.order) {
    display: none;
  }

  .hero-grid,
  .what-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 45px;
  }

  .hero-art {
    height: 470px;
  }

  .feature-photo {
    min-height: 450px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .gallery-row {
    grid-template-columns: 1fr 1fr;
  }

  .shot {
    height: 320px;
  }

  .shot:nth-child(3) {
    grid-column: 1 / 3;
  }

  .flow {
    grid-template-columns: 1fr;
  }
}

/* スマートフォン */

@media (max-width: 540px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .nav {
    height: 70px;
  }

  .logo .full {
    display: none;
  }

  .order {
    padding: 9px 13px;
  }

  h1 {
    font-size: 3.85rem;
  }

  .hero-art {
    height: 370px;
  }

  .case-card {
    inset: 30px 10px 10px;
  }

  .mascot {
    right: -5px;
    width: 145px;
  }

  .talk {
    width: 155px;
    font-size: 0.72rem;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 220px;
  }

  .feature-photo {
    min-height: 360px;
  }

  .gallery-row {
    grid-template-columns: 1fr;
  }

  .shot,
  .shot:nth-child(2),
  .shot:nth-child(3) {
    grid-column: auto;
    height: 300px;
    transform: none;
  }

  .choice {
    padding: 27px;
  }

  .hero-actions {
    display: grid;
  }

  .pop-btn {
    width: 100%;
  }

  section {
    padding: 78px 0;
  }
}

/* 動きを減らす設定 */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}