/* ========================================
   基本設定
======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;

  color: #3d3734;
  background: #ffffff;

  font-family:
    "Noto Sans JP",
    "Yu Gothic",
    "YuGothic",
    "Hiragino Kaku Gothic ProN",
    sans-serif;

  line-height: 1.8;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.inner {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}


/* ========================================
   セクション見出し
======================================== */

.section-title {
  margin-bottom: 55px;
  text-align: center;
}

.section-title span {
  display: block;
  margin-bottom: 3px;

  color: #888;

  font-family: Georgia, serif;
  font-size: 12px;
}

.section-title h2 {
  margin: 0;

  font-size: 28px;
  line-height: 1.4;
}

.title-line {
  width: 1px;
  height: 25px;

  margin: 12px auto 0;

  background: #555;
}


/* ========================================
   FV
======================================== */

.fv {
  overflow: hidden;

  padding: 100px 0 60px;

  background:
    radial-gradient(
      circle at 15% 25%,
      #fff6e6 0 13%,
      transparent 14%
    ),

    radial-gradient(
      circle at 76% 12%,
      #fffbe2 0 14%,
      transparent 15%
    ),

    radial-gradient(
      circle at 63% 58%,
      #fff9ed 0 13%,
      transparent 14%
    ),

    #fffefa;
}

.fv-copy {
  text-align: center;
}

.fv-copy h1 {
  margin: 0;

  font-size: clamp(38px, 5vw, 68px);
  font-weight: 700;

  line-height: 1.35;
  letter-spacing: 0.02em;
}

.fv-copy p {
  margin: 45px 0 65px;

  font-size: 20px;
  line-height: 2;
}


/* ========================================
   FV 制作実績 自動スライダー
======================================== */

.works-slider {
  width: 100%;
  overflow: hidden;

  padding: 15px 0 25px;
}

.works-track {
  display: flex;
  align-items: center;

  width: max-content;
  gap: 24px;

  animation:
    works-scroll 65s
    linear
    infinite;
}

.fv-work {
  flex: 0 0 290px;

  width: 290px;
  height: 230px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;

  background: rgba(255, 255, 255, 0.92);

  border-radius: 4px;
}

.fv-work img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

@keyframes works-scroll {

  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 12px));
  }

}

.works-slider:hover .works-track {
  animation-play-state: paused;
}


/* ========================================
   サービス
======================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.service-item {
  min-height: 150px;

  display: grid;

  /* アイコン部分と文字部分の幅を固定 */
  grid-template-columns: 90px 140px;

  align-items: center;
  justify-content: center;

  column-gap: 25px;

  padding: 25px 20px;

  background: #fafafa;
}


/* アイコン画像 */

.service-icon-img {
  width: 80px;
  height: 80px;

  object-fit: contain;

  /* 90pxのアイコンエリア中央に配置 */
  justify-self: center;
  align-self: center;
}


/* サービス名 */

.service-item p {
  width: 140px;

  margin: 0;

  color: #3d3734;

  font-size: 15px;
  font-weight: 600;

  line-height: 1.6;

  text-align: left;

  align-self: center;
}


/* ========================================
   スマホ
======================================== */

@media (max-width: 767px) {

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-item {
    min-height: 145px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 18px 10px;
  }

  .service-icon-img {
    width: 60px;
    height: 60px;
  }

  .service-item p {
    width: auto;

    font-size: 13px;

    text-align: center;
  }

}


/* ========================================
   ヒートマップ
======================================== */

.heatmap-content {
  display: grid;

  grid-template-columns: 1fr 1.2fr;

  align-items: center;

  gap: 60px;
}

.heatmap-images {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 18px;
}

.heatmap-images img {
  width: 100%;

  border-radius: 3px;
}

.heatmap-text h3 {
  margin-top: 0;

  font-size: 20px;
}

.heatmap-text p {
  color: #666;

  font-size: 14px;
}


/* ========================================
   制作実績
======================================== */

.works-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 40px 22px;
}

.work-image {
  width: 100%;
  height: 260px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: #fff;

  border: 1px solid #e1e1e1;
}

.work-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.work-item p {
  margin: 10px 0 0;

  font-size: 13px;
}


/* ========================================
   料金
======================================== */

.price {
  background: #fafafa;
}

.price-box {
  position: relative;

  padding: 80px 60px 65px;

  background: #fff;

  box-shadow:
    0 8px 25px
    rgba(0, 0, 0, 0.08);

  text-align: center;
}

.step {
  position: absolute;

  top: -38px;
  left: 50%;

  width: 76px;
  height: 76px;

  transform: translateX(-50%);

  border-radius: 50%;

  background: #ff6962;

  color: #fff;

  font-size: 10px;
  line-height: 1.3;

  padding-top: 16px;
}

.step strong {
  font-size: 18px;
}

.price-box h3 {
  margin: 0;

  font-size: 24px;
}

.price-description {
  color: #888;

  font-size: 13px;
}

.price-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;

  margin-top: 40px;
}

.price-item {
  padding: 35px 20px;

  box-shadow:
    0 4px 15px
    rgba(0, 0, 0, 0.09);
}

.price-item h4 {
  margin: 0 0 8px;

  font-size: 16px;
}

.price-item p {
  margin: 0;

  color: #777;

  font-size: 12px;
}


/* ========================================
   制作の流れ
======================================== */

.flow-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 18px;
}

.flow-item {
  min-height: 260px;

  padding: 30px 22px;

  border: 1px solid #ffaaa5;

  border-radius: 7px;
}

.flow-item span {
  display: inline-block;

  padding: 3px 12px;

  border-radius: 20px;

  background: #ff6962;

  color: #fff;

  font-size: 10px;
}

.flow-item h3 {
  margin: 20px 0 15px;

  font-size: 18px;
}

.flow-item p {
  margin: 0;

  color: #666;

  font-size: 13px;
}


/* ========================================
   About
======================================== */

.about-content {
  display: grid;

  grid-template-columns: 260px 1fr;

  align-items: center;

  gap: 60px;

  max-width: 900px;

  margin: 0 auto;
}

.profile-image img {
  width: 230px;
  height: 230px;

  border-radius: 50%;

  object-fit: cover;

  object-position: center 28%;
}

.about-text p {
  margin-top: 0;
}


/* ========================================
   Contact
======================================== */

.contact {
  padding-bottom: 120px;

  text-align: center;
}

.contact-text {
  margin-bottom: 35px;

  font-size: 16px;
}

.line-button {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 25px;

  width: min(430px, 100%);
  min-height: 65px;

  margin: 0 auto;

  padding: 15px 30px;

  border-radius: 40px;

  background: #ff6962;

  color: #fff;

  font-size: 16px;
  font-weight: 700;

  text-decoration: none;

  transition: 0.25s;
}

.line-button:hover {
  opacity: 0.8;

  transform: translateY(-2px);
}

.line-button span {
  font-size: 25px;
}


/* ========================================
   Footer
======================================== */

footer {
  padding: 25px 20px;

  background: #f8f8f8;

  text-align: center;
}

footer p {
  margin: 0;

  color: #888;

  font-size: 12px;
}


/* ========================================
   タブレット・スマホ
======================================== */

@media (max-width: 767px) {

  .inner {
    width: min(calc(100% - 30px), 600px);
  }

  .section {
    padding: 65px 0;
  }

  .section-title {
    margin-bottom: 35px;
  }

  .section-title h2 {
    font-size: 23px;
  }


  /* FV */

  .fv {
    padding: 60px 0 40px;
  }

  .fv-copy h1 {
    font-size: 34px;
  }

  .fv-copy p {
    margin: 30px 0 40px;

    font-size: 15px;
  }


  /* FVスライダー */

  .works-track {
    gap: 15px;

    animation-duration: 50s;
  }

  .fv-work {
    flex-basis: 210px;

    width: 210px;
    height: 170px;

    padding: 12px;
  }


  /* サービス */

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-item {
    min-height: 120px;

    flex-direction: column;

    gap: 10px;

    padding: 15px;

    text-align: center;
  }

  .service-icon-img {
    width: 55px;
    height: 55px;
  }

  .service-item p {
    font-size: 13px;
  }


  /* ヒートマップ */

  .heatmap-content {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .heatmap-text h3 {
    font-size: 17px;
  }


  /* 制作実績 */

  .works-grid {
    grid-template-columns: 1fr 1fr;

    gap: 25px 12px;
  }

  .work-image {
    height: 180px;

    padding: 12px;
  }

  .work-item p {
    font-size: 11px;
  }


  /* 料金 */

  .price-box {
    padding: 65px 20px 30px;
  }

  .price-grid {
    grid-template-columns: 1fr;

    gap: 15px;
  }


  /* 制作の流れ */

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .flow-item {
    min-height: auto;
  }


  /* About */

  .about-content {
    grid-template-columns: 1fr;

    gap: 30px;

    text-align: center;
  }

  .profile-image img {
    width: 180px;
    height: 180px;

    margin: 0 auto;
  }

  .about-text {
    text-align: left;
  }

}


/* ========================================
   小さいスマホ
======================================== */

@media (max-width: 420px) {

  .fv-copy h1 {
    font-size: 29px;
  }

  .fv-copy p br {
    display: none;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-image {
    height: 230px;
  }

}