:root {
  --navy: #283457;
  --text: #333333;
  --accent: #b56d75;
  --contact: #e34b67;
  --white: #ffffff;
  --gold: #c99b4d;
  --card: #fff9f3;
  --header-height: 6.875rem;
  --content-wide: 75rem;
  --content-medium: 58rem;
  --content-narrow: 48rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Noto Serif JP", serif;
  line-height: 1.8;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 0.125rem 0.75rem rgb(40 52 87 / 8%);
  backdrop-filter: blur(0.5rem);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding-inline: clamp(1.25rem, 3vw, 3rem);
}

.site-logo {
  position: absolute;
  top: 50%;
  left: clamp(1rem, 2vw, 1.75rem);
  display: block;
  width: clamp(7rem, 10vw, 9rem);
  transform: translateY(-50%);
}

.site-logo img {
  width: 100%;
  max-height: calc(var(--header-height) - 0.8rem);
  object-fit: contain;
  object-position: left center;
}

.global-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.global-nav__list a {
  position: relative;
  display: block;
  padding-block: 0.65rem;
  color: var(--text);
  font-size: clamp(0.75rem, 0.9vw, 0.9rem);
  letter-spacing: 0.04em;
  transition: color 0.25s ease, transform 0.25s ease;
}

.global-nav__list a:hover {
  color: var(--accent);
  transform: translateY(-0.15rem);
}

.global-nav__list a.is-current::after {
  position: absolute;
  right: 0;
  bottom: 0.15rem;
  left: 0;
  height: 0.0625rem;
  background: var(--navy);
  content: "";
}

.global-nav__contact {
  padding: 0.35rem 0.85rem !important;
  color: var(--white) !important;
  background: var(--contact);
  line-height: 1.1;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
}

.global-nav__contact::after {
  display: none !important;
}

.global-nav__contact:hover {
  background: #c95e6f;
  box-shadow: 0 0.35rem 0.8rem rgb(181 109 117 / 25%);
}

.menu-button {
  display: none;
}

/* =========================
   HERO
========================= */

.hero--home {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(31rem, 43vw, 43rem);
  padding: clamp(4rem, 7vw, 7rem) 5vw;
  background-image: url("../images/common/hero-bg-large.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero__content {
  width: min(92%, 45rem);
  text-align: center;
}

.hero__kana {
  margin: 0 0 0.25rem;
  color: var(--navy);
  font-size: clamp(0.68rem, 0.8vw, 0.82rem);
  letter-spacing: 0.14em;
}

.hero__title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.35rem, 4vw, 3.7rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.35;
}

.hero__divider {
  width: clamp(11rem, 17vw, 15rem);
  margin: clamp(0.8rem, 1.6vw, 1.2rem) auto clamp(1.1rem, 2vw, 1.6rem);
}

.hero__lead,
.hero__text {
  margin: 0;
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  line-height: 2;
}

.hero__portfolio {
  margin: clamp(0.9rem, 1.5vw, 1.2rem) 0 0;
  color: var(--accent);
  font-family: "Ephesis", cursive;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
}

/* =========================
   WORKS BASE
========================= */

.works {
  padding: clamp(4.5rem, 8vw, 7rem) 4vw clamp(5rem, 9vw, 8rem);
}

.works__inner {
  width: min(92vw, var(--content-wide));
  margin-inline: auto;
}

.works__heading {
  text-align: center;
}

.section-heading__title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.25rem, 3.5vw, 3.3rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.section-heading__ja {
  margin: 0.25rem 0 0;
  font-size: clamp(0.72rem, 0.9vw, 0.85rem);
  letter-spacing: 0.08em;
}

.section-heading__text {
  margin: clamp(1.3rem, 2.4vw, 2rem) 0 0;
  color: #555;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  letter-spacing: 0.08em;
}

.works-filter {
  display: grid;
  grid-template-columns: repeat(5, minmax(7rem, 1fr));
  gap: clamp(0.8rem, 1.8vw, 1.5rem);
  width: min(94%, 52rem);
  margin: clamp(2rem, 3.5vw, 3rem) auto 0;
}

.works-filter__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.works-filter__button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 2.4rem;
  padding: 0.45rem 0.6rem;
  border: 0.0625rem solid #8991a8;
  border-radius: 0.75rem;
  color: var(--white);
  background: linear-gradient(180deg, #efd6da 0%, #daa8b4 42%, #9e9bb8 72%, #68718d 100%);
  box-shadow: inset 0 0.0625rem 0 rgb(255 255 255 / 85%), 0 0.12rem 0.3rem rgb(40 52 87 / 20%);
  font-size: clamp(0.7rem, 0.9vw, 0.82rem);
  line-height: 1.2;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.works-filter__en {
  margin-top: 0.45rem;
  font-size: clamp(0.62rem, 0.75vw, 0.75rem);
  letter-spacing: 0.04em;
}

.works-filter__item:hover .works-filter__button {
  opacity: 0.92;
  transform: translateY(-0.15rem);
  box-shadow: inset 0 0.0625rem 0 rgb(255 255 255 / 90%), 0 0.35rem 0.7rem rgb(40 52 87 / 22%);
}

/* =========================
   WORKS CATEGORY
========================= */

.works-category {
  width: 100%;
  margin-top: clamp(4.5rem, 8vw, 7rem);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.works-category__heading {
  display: flex;
  align-items: center;
  width: min(100%, 67rem);
  margin: 0 auto clamp(2.2rem, 4vw, 3.4rem);
}

.works-category__line {
  flex: 1;
  height: 0.0625rem;
  background: var(--gold);
}

.works-category__title-wrap {
  flex-shrink: 0;
  min-width: clamp(10rem, 20vw, 15rem);
  padding-inline: clamp(0.8rem, 2vw, 1.5rem);
  text-align: center;
}

.works-category__title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.works-category__title--ja {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 600;
}

.works-category__ja {
  margin: 0.2rem 0 0;
  color: #555;
  font-size: clamp(0.58rem, 0.7vw, 0.7rem);
  letter-spacing: 0.08em;
}

.works-grid {
  display: grid;
  margin-inline: auto;
}

.works-grid--website {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.6rem);
  width: min(90%, 62rem);
}

.works-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
  width: min(86%, 48rem);
}

.works-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.3rem);
  width: min(92%, 58rem);
}

.works-grid--retouch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
  width: min(88%, 49rem);
}

.works-card {
  min-width: 0;
}

.works-card__link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 0.25rem;
  color: var(--text);
  background: var(--card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.works-card__link:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.55rem 1.25rem rgb(40 52 87 / 12%);
}

.works-card__image-wrap {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.65 / 1;
}

.works-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}

.works-card__link:hover .works-card__image {
  transform: scale(1.025);
}

.works-card__body {
  padding: 0.7rem 1rem 1.15rem;
}

.works-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.works-card__tags li {
  padding: 0.18rem 0.55rem;
  border-radius: 999rem;
  color: #925f66;
  background: #f4c8cb;
  font-size: clamp(0.5rem, 0.65vw, 0.62rem);
  line-height: 1.2;
  white-space: nowrap;
}

.works-card__title {
  margin: 1rem 0 0;
  color: #4a4545;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
}

.works-card--small .works-card__body {
  padding: 0.55rem 0.65rem 0.95rem;
}

.works-card--small .works-card__title {
  margin-top: 0.75rem;
}

.works-card__image-wrap--banner {
  aspect-ratio: 1 / 1;
  padding: clamp(0.45rem, 1vw, 0.8rem);
}

.works-card__image-wrap--sns {
  aspect-ratio: 4 / 5;
  padding: 0.35rem;
}

.works-card__image-wrap--other {
  aspect-ratio: 4 / 5;
  padding: clamp(0.6rem, 1.3vw, 1rem);
}

/* =========================
   RETOUCH
========================= */

.works-card--retouch .works-card__link {
  border: 0.0625rem solid #9da2b1;
}

.retouch-comparison {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 0.7rem 0;
}

.retouch-comparison__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(2.7rem, 5vw, 3.4rem);
  align-items: center;
  gap: 0.45rem;
}

.retouch-comparison__item img {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
}

.retouch-comparison__item span {
  color: #4f4747;
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  letter-spacing: 0.04em;
}

.works-card--retouch .works-card__body {
  padding: 0.7rem 0.8rem 0.9rem;
}

.works-card--retouch .works-card__title {
  margin-top: 0.8rem;
  font-size: clamp(0.72rem, 0.9vw, 0.85rem);
  text-align: left;
}

/* =========================
   TABLET
========================= */

@media (max-width: 64rem) {
  :root {
    --header-height: 5.8rem;
  }

  .works__inner {
    width: min(94vw, 64rem);
  }

  .works-grid--website {
    width: min(94%, 54rem);
  }

  .works-grid--three,
  .works-grid--retouch {
    width: min(94%, 44rem);
  }

  .works-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(92%, 38rem);
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 47.9375rem) {
  :root {
    --header-height: 5rem;
  }

  .site-header__inner {
    padding-inline: 1rem;
  }

  .site-logo {
    position: static;
    width: clamp(5.8rem, 27vw, 7rem);
    margin-right: auto;
    transform: none;
  }

  .site-logo img {
    max-height: calc(var(--header-height) - 0.5rem);
  }

  .menu-button {
    position: relative;
    z-index: 110;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.45rem 0.2rem;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button__line {
    display: block;
    width: 1.75rem;
    height: 0.0625rem;
    margin: 0.25rem auto;
    background: var(--navy);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .menu-button.is-open .menu-button__line:nth-child(1) {
    transform: translateY(0.5625rem) rotate(45deg);
  }

  .menu-button.is-open .menu-button__line:nth-child(2) {
    opacity: 0;
  }

  .menu-button.is-open .menu-button__line:nth-child(3) {
    transform: translateY(-0.5625rem) rotate(-45deg);
  }

  .global-nav {
    position: fixed;
    z-index: 105;
    top: var(--header-height);
    right: 0;
    left: 0;
    visibility: hidden;
    min-height: calc(100dvh - var(--header-height));
    padding: 1.6rem 1.25rem 2.5rem;
    background: rgb(255 255 255 / 98%);
    opacity: 0;
    transform: translateY(-0.6rem);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  .global-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .global-nav__list {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: min(100%, 15rem);
    margin-inline: auto;
  }

  .global-nav__list li {
    width: 100%;
  }

  .global-nav__list a {
    width: 100%;
    padding: 1rem 1.2rem;
    border-bottom: 0.0625rem solid #c9c9c9;
    font-size: 0.95rem;
    text-align: center;
  }

  .global-nav__list a::after,
  .global-nav__list a.is-current::after {
    display: none;
  }

  .global-nav__contact {
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem !important;
  }

  .hero--home {
    min-height: clamp(30rem, 125vw, 36rem);
    padding: clamp(3.8rem, 15vw, 5rem) 1.1rem clamp(4rem, 16vw, 5.2rem);
  }

  .hero__content {
    width: 100%;
  }

  .hero__title {
    font-size: clamp(2rem, 8.5vw, 2.7rem);
  }

  .hero__lead,
  .hero__text {
    font-size: clamp(0.7rem, 3.2vw, 0.82rem);
  }

  .works {
    padding: clamp(3.8rem, 15vw, 5rem) 1rem clamp(4.5rem, 18vw, 6rem);
  }

  .works__inner {
    width: 100%;
  }

  .works-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 20rem);
    gap: 1.2rem 1rem;
  }

  .works-filter__item:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 0.5rem);
    justify-self: center;
  }

  .works-category {
    margin-top: clamp(3.8rem, 16vw, 5rem);
  }

  .works-category__heading {
    width: 100%;
    margin-bottom: 2rem;
  }

  .works-category__title-wrap {
    min-width: clamp(8.5rem, 45vw, 11rem);
    padding-inline: 0.75rem;
  }

  .works-grid--website,
  .works-grid--three,
  .works-grid--four,
  .works-grid--retouch {
    grid-template-columns: 1fr;
    width: min(100%, 24rem);
    gap: 1.6rem;
  }

  .works-card__body {
    padding: 0.65rem 0.8rem 1rem;
  }

  .retouch-comparison__item {
    grid-template-columns: minmax(0, 1fr) 3.2rem;
  }

  .retouch-comparison__item img {
    aspect-ratio: 1.6 / 1;
  }
}


/* =========================
   FINAL BALANCE ADJUSTMENT
========================= */

/* PC：ファーストビューを少し短くしてWORKSを早く見せる */
@media (min-width: 48rem) {
  .hero--home {
    min-height: clamp(23rem, 29vw, 27rem);
    padding: clamp(2.7rem, 4vw, 4rem) 5vw;
  }

  /* WORKS説明文を読みやすく */
  .section-heading__text {
    margin-top: clamp(1.1rem, 1.8vw, 1.5rem);
    font-size: clamp(0.95rem, 1.05vw, 1.08rem);
    line-height: 2;
  }

  /* カード間の余白を少し詰める */
  .works-grid--website {
    gap: clamp(1.6rem, 2.2vw, 2rem);
  }

  .works-grid--three {
    gap: clamp(1.2rem, 1.8vw, 1.7rem);
  }

  .works-grid--four {
    gap: clamp(0.85rem, 1.2vw, 1.1rem);
  }

  .works-grid--retouch {
    gap: clamp(1.2rem, 1.8vw, 1.7rem);
  }

  /* タグを少し大きく */
  .works-card__tags li {
    padding: 0.22rem 0.62rem;
    font-size: clamp(0.66rem, 0.72vw, 0.76rem);
  }
}

/* 画像をブラウザ側で必要以上に拡大・ぼかさない */
.works-card__image {
  image-rendering: auto;
  backface-visibility: hidden;
}

.works-card__link:hover .works-card__image {
  transform: none;
}

/* スマホではヒーローの見やすさを維持 */
@media (max-width: 47.9375rem) {
  .section-heading__text {
    font-size: 0.82rem;
    line-height: 2;
  }

  .works-card__tags li {
    font-size: 0.62rem;
  }
}


/* =========================
   WORKS DENSITY TUNING
========================= */

/* セクション全体の上下余白を圧縮 */
.works {
  padding-top: clamp(3.4rem, 4.6vw, 4.8rem);
  padding-bottom: clamp(4.2rem, 5.8vw, 6rem);
}

/* WORKS見出しまわりを詰める */
.section-heading__text {
  margin-top: clamp(0.9rem, 1.4vw, 1.2rem);
}

.works-filter {
  margin-top: clamp(1.6rem, 2.2vw, 2rem);
}

/* 各カテゴリー間の空白を約25％縮小 */
.works-category {
  margin-top: clamp(3rem, 4vw, 4.2rem);
}

.works-category__heading {
  margin-bottom: clamp(1.5rem, 2.2vw, 2rem);
}

/* カード同士の間隔を縮小 */
.works-grid--website {
  gap: clamp(1.2rem, 1.8vw, 1.6rem);
}

.works-grid--three {
  gap: clamp(0.95rem, 1.4vw, 1.3rem);
}

.works-grid--four {
  gap: clamp(0.7rem, 1vw, 0.95rem);
}

.works-grid--retouch {
  gap: clamp(0.95rem, 1.4vw, 1.3rem);
}

/* カード内の余白を整理 */
.works-card__body {
  padding: 0.55rem 0.8rem 0.85rem;
}

.works-card--small .works-card__body {
  padding: 0.45rem 0.65rem 0.75rem;
}

.works-card__title {
  margin-top: 0.55rem;
}

.works-card--small .works-card__title {
  margin-top: 0.5rem;
}

/* 画像を少し大きく見せる */
.works-card__image-wrap {
  padding: 0.35rem;
}

.works-card__image-wrap--banner,
.works-card__image-wrap--other {
  padding: 0.55rem;
}

.works-card__image-wrap--sns {
  padding: 0.25rem;
}

/* ホバー時にカード全体だけをふわっと浮かせる */
.works-card__link {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.works-card__link:hover {
  transform: translateY(-0.35rem);
  box-shadow: 0 0.75rem 1.5rem rgb(40 52 87 / 14%);
}

/* カテゴリーボタンの反応を少し強める */
.works-filter__item:hover .works-filter__button {
  transform: translateY(-0.2rem);
  box-shadow:
    inset 0 0.0625rem 0 rgb(255 255 255 / 90%),
    0 0.45rem 0.9rem rgb(40 52 87 / 20%);
}

/* スマホでは詰めすぎない */
@media (max-width: 47.9375rem) {
  .works {
    padding-top: 3.6rem;
    padding-bottom: 4.5rem;
  }

  .works-category {
    margin-top: 3.5rem;
  }

  .works-category__heading {
    margin-bottom: 1.75rem;
  }

  .works-grid--website,
  .works-grid--three,
  .works-grid--four,
  .works-grid--retouch {
    gap: 1.35rem;
  }

  .works-card__body,
  .works-card--small .works-card__body {
    padding: 0.65rem 0.75rem 0.9rem;
  }
}


/* =========================
   FAQ
========================= */

.faq {
  padding: clamp(4rem, 6vw, 6rem) 1.25rem 0;
  background: #fff;
}

.faq__inner {
  width: min(100%, 72rem);
  margin-inline: auto;
}

.page-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  width: min(100%, 38rem);
  margin: 0 auto clamp(2.5rem, 4vw, 4rem);
}

.page-links__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 5.2rem;
  border: 0.12rem solid #283457;
  outline: 0.06rem solid #fff;
  outline-offset: -0.4rem;
  color: #fff;
  background: #283457;
  text-align: center;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.page-links__item:hover {
  background: #b56d75;
  transform: translateY(-0.2rem);
}

.page-links__title {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.page-links__subtitle {
  margin-top: 0.15rem;
  font-size: 0.75rem;
}

.faq__heading {
  text-align: center;
}

.faq__title-row {
  display: flex;
  align-items: center;
}

.faq__line {
  flex: 1;
  height: 0.0625rem;
  background: #c99b4d;
}

.faq__title-wrap {
  flex-shrink: 0;
  min-width: clamp(10rem, 18vw, 14rem);
  padding-inline: 1rem;
}

.faq__title {
  margin: 0;
  color: #283457;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.faq__subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
}

.faq__lead {
  margin: 1.1rem 0 0;
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  letter-spacing: 0.05em;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  margin-top: clamp(2rem, 3.5vw, 3rem);
  border: 0.0625rem solid rgb(255 255 255 / 25%);
  background: linear-gradient(180deg, #e8b2b5 0%, #c49daf 45%, #8e91b0 76%, #4f6085 100%);
}

.faq-item {
  border-bottom: 0.0625rem solid rgb(255 255 255 / 24%);
}

.faq-item:nth-child(odd) {
  border-right: 0.0625rem solid rgb(255 255 255 / 24%);
}

.faq-item__question {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 1.5rem;
  gap: 0.5rem;
  align-items: center;
  min-height: 6.4rem;
  padding: 1.25rem 1.2rem;
  color: #fff;
  cursor: pointer;
  list-style: none;
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  line-height: 1.7;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__mark {
  align-self: start;
  font-size: 1.05em;
}

.faq-item__icon {
  position: relative;
  width: 1.2rem;
  height: 1.2rem;
}

.faq-item__icon::before,
.faq-item__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.9rem;
  height: 0.0625rem;
  background: #fff;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item[open] .faq-item__question {
  background: rgb(40 52 87 / 16%);
}

.faq-item__answer {
  padding: 0 1.25rem 1.5rem 3.7rem;
  color: #fff;
  font-size: clamp(0.84rem, 1vw, 0.98rem);
  line-height: 1.85;
}

.faq-item__answer p {
  margin: 0 0 0.9rem;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.faq-item__answer ul {
  margin: 0.3rem 0 1rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.faq-item__answer-mark {
  display: inline-block;
  margin-right: 0.4rem;
  font-weight: 600;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(11rem, 17vw, 15rem);
  margin-top: clamp(3rem, 5vw, 5rem);
  overflow: hidden;
  background: linear-gradient(90deg, #a5acc0 0%, #d6cdd3 52%, #ead3d4 100%);
}

.site-footer__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.site-footer__brand {
  margin: 0;
  color: #333;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: 0.12em;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  margin-top: 1.2rem;
}

.site-footer__nav a {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  transition: color 0.25s ease;
}

.site-footer__nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.25rem;
  left: 0;
  height: 0.0625rem;
  background: #b56d75;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-footer__nav a:hover {
  color: #b56d75;
}

.site-footer__nav a:hover::after {
  transform: scaleX(1);
}

.site-footer__copyright {
  margin: 1.4rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.site-footer__decoration {
  position: absolute;
  bottom: 0;
  width: clamp(9rem, 22vw, 20rem);
  max-height: 100%;
  object-fit: contain;
}

.site-footer__decoration--left {
  left: 0;
  object-position: left bottom;
}

.site-footer__decoration--right {
  right: 0;
  object-position: right bottom;
}

@media (max-width: 47.9375rem) {
  .faq {
    padding-inline: 1rem;
  }

  .page-links {
    grid-template-columns: 1fr;
    width: min(100%, 20rem);
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .faq-item:nth-child(odd) {
    border-right: 0;
  }

  .faq-item__question {
    min-height: auto;
    padding: 1.1rem 1rem;
    grid-template-columns: 1.7rem minmax(0, 1fr) 1.4rem;
  }

  .faq-item__answer {
    padding: 0 1rem 1.3rem 3.2rem;
  }

  .site-footer {
    min-height: 16rem;
    padding: 2rem 1rem;
  }

  .site-footer__nav {
    flex-wrap: wrap;
    max-width: 17rem;
    margin-inline: auto;
  }

  .site-footer__decoration {
    width: clamp(7rem, 34vw, 10rem);
    opacity: 0.9;
  }
}


/* ==================================================
   WORDPRESS HEADER / HERO FINAL REWRITE
   ヘッダー高さ・全メニュー下線・大画面背景対応
================================================== */

:root {
  --header-height: clamp(6.8rem, 7.2vw, 8rem);
}

/* ---------- PC HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  min-height: var(--header-height);
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 0.125rem 0.75rem rgb(40 52 87 / 7%);
  backdrop-filter: blur(0.5rem);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: var(--header-height);
  margin: 0;
  padding-inline: clamp(1.3rem, 3vw, 3.8rem);
}

.site-logo {
  position: absolute;
  top: 50%;
  left: clamp(1rem, 2vw, 2rem);
  display: block;
  width: clamp(7.5rem, 8vw, 9.5rem);
  transform: translateY(-50%);
}

.site-logo img {
  display: block;
  width: 100%;
  max-height: calc(var(--header-height) - 0.55rem);
  object-fit: contain;
  object-position: left center;
}

.global-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 3.3vw, 3.8rem);
}

.global-nav__link {
  position: relative;
  display: block;
  padding: 0.7rem 0 0.65rem;
  color: var(--text);
  font-size: clamp(0.82rem, 0.88vw, 0.98rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

/* HOME・PROFILE・FLOWの下線を常に表示 */
.global-nav__link:not(.global-nav__contact)::after {
  position: absolute;
  right: 0;
  bottom: 0.15rem;
  left: 0;
  height: 0.0625rem;
  background: var(--navy);
  content: "";
  transform: scaleX(1);
  transform-origin: center;
}

.global-nav__link:hover {
  color: var(--accent);
  transform: translateY(-0.12rem);
}

.global-nav__contact {
  padding: 0.45rem 0.95rem 0.5rem !important;
  color: var(--white) !important;
  background: var(--contact);
  line-height: 1.1;
  box-shadow: none;
}

/* CONTACTにも白い下線を表示 */
.global-nav__contact::after {
  position: absolute !important;
  right: 0.9rem !important;
  bottom: 0.24rem !important;
  left: 0.9rem !important;
  display: block !important;
  height: 0.0625rem !important;
  background: rgb(255 255 255 / 90%) !important;
  content: "" !important;
}

.global-nav__contact:hover {
  color: var(--white) !important;
  background: #c95e6f;
  box-shadow: 0 0.35rem 0.8rem rgb(181 109 117 / 25%);
}

/* ---------- HERO ---------- */

.hero--home {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(29rem, 34vw, 38rem);
  padding: clamp(3.3rem, 5vw, 5.2rem) 5vw;
  background-color: #fff;
  background-image: url("../images/common/hero-bg-large.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero__content {
  width: min(92%, 45rem);
  text-align: center;
}

/* 大型PCでは縦方向へ過剰に引き伸ばさない */
@media (min-width: 100rem) {
  .hero--home {
    min-height: clamp(31rem, 31vw, 38rem);
    background-size: 100% auto;
    background-position: center center;
  }
}

/* ---------- MOBILE ---------- */

@media (max-width: 47.9375rem) {
  :root {
    --header-height: 5.2rem;
  }

  .site-header,
  .site-header__inner {
    height: var(--header-height);
    min-height: var(--header-height);
  }

  .site-header__inner {
    padding-inline: 0.85rem;
  }

  .site-logo {
    position: static;
    width: clamp(5.7rem, 25vw, 6.8rem);
    margin-right: auto;
    transform: none;
  }

  .site-logo img {
    max-height: calc(var(--header-height) - 0.45rem);
  }

  .global-nav__link:not(.global-nav__contact)::after,
  .global-nav__contact::after {
    display: none !important;
  }

  .hero--home {
    min-height: clamp(29rem, 122vw, 36rem);
    padding: clamp(3.5rem, 13vw, 4.8rem) 1.1rem;
    background-position: center center;
    background-size: cover;
  }

  .site-footer {
    min-height: 10rem;
    padding: 0.75rem 1rem;
  }
}
.site-logo {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    text-decoration: none;
}

.site-logo__text {
    color: #283457;
    font-family: "Inria Serif", "Times New Roman", serif;
    font-size: clamp(1.5rem, 2.3vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.16em;
    line-height: 1;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .site-logo {
        gap: 0.7rem;
    }

    .site-logo__text {
        font-size: 1rem;
        letter-spacing: 0.08em;
    }
}
/* =========================
   WORKS HORIZONTAL CAROUSEL
   対象：BANNER / SNS / RETOUCH / その他
========================= */

.works-grid--carousel {
  --works-carousel-gap: clamp(0.8rem, 1.4vw, 1.25rem);
  display: flex;
  gap: var(--works-carousel-gap);
  width: min(96%, 70rem);
  margin-inline: auto;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.works-grid--carousel::-webkit-scrollbar {
  display: none;
}

.works-grid--carousel > .works-card {
  flex: 0 0 calc((100% - (var(--works-carousel-gap) * 3)) / 4);
}

.works-grid--carousel.is-auto-scrolling {
  scroll-behavior: auto;
}

.works-carousel__hint {
  display: none;
}

/* タブレット：自動再生せず、指で横スクロール */
@media (max-width: 64rem) {
  .works-grid--carousel {
    width: min(96%, 48rem);
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
  }

  .works-grid--carousel > .works-card {
    flex-basis: min(44%, 20rem);
    scroll-snap-align: start;
  }
}

/* スマホ：1枚＋次の作品が少し見える */
@media (max-width: 47.9375rem) {
  .works-grid--carousel {
    width: 100%;
    gap: 0.9rem;
    padding-inline: 0.15rem 1.6rem;
  }

  .works-grid--carousel > .works-card {
    flex-basis: 82%;
  }

  .works-carousel__hint {
    display: block;
    margin: 0.8rem 0 0;
    color: #666;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-align: center;
  }
}

/* =========================
   Subtle motion enhancements
   1. Scroll reveal
   2. Heading gold-line reveal
   3. HOME hero watercolor slow zoom
========================= */

/* HOME hero: keep the current design and animate only the background image. */
.hero--home {
  overflow: hidden;
  isolation: isolate;
  background-image: none;
}

.hero--home::before {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: 0;
  pointer-events: none;
  background-image: url("../images/common/hero-bg-large.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: scale(1);
  transform-origin: center;
  animation: hero-watercolor-zoom 10s ease-in-out infinite alternate;
  will-change: transform;
}

.hero--home .hero__content {
  position: relative;
  z-index: 1;
}

@keyframes hero-watercolor-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.03);
  }
}

/* Elements are hidden only after JavaScript has prepared them. */
.motion-ready .scroll-reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.motion-ready .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Existing gold lines grow once when their heading enters the viewport. */
.motion-ready .motion-line {
  transform: scaleX(0);
  transition: transform 0.8s ease;
}

.motion-ready .motion-line--left {
  transform-origin: right center;
}

.motion-ready .motion-line--right {
  transform-origin: left center;
}

.motion-ready .motion-line.is-visible {
  transform: scaleX(1);
}



/* =========================
   FINAL: HOME hero sparkles + FLOW arrow restore
   Only these requested effects are changed here.
========================= */

/* Restore the HOME hero background to its original static state. */
.hero--home {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image: url("../images/common/hero-bg-large.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Disable the previous slow-zoom layer completely. */
.hero--home::before {
  content: none !important;
  animation: none !important;
  transform: none !important;
}

.hero--home .hero__content {
  position: relative;
  z-index: 2;
}

/* Jewelry-like gold-foil twinkles around the watercolor. */
.hero-sparkles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-sparkle {
  position: absolute;
  top: var(--sparkle-top);
  left: var(--sparkle-left);
  width: var(--sparkle-size);
  height: var(--sparkle-size);
  color: var(--sparkle-color);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35) rotate(var(--sparkle-rotate));
  animation: hero-jewel-twinkle var(--sparkle-duration) ease-in-out var(--sparkle-delay) infinite;
  filter:
    drop-shadow(0 0 0.10rem rgba(40, 52, 87, 0.22))
    drop-shadow(0 0 0.24rem rgba(216, 178, 90, 0.50))
    drop-shadow(0 0 0.42rem rgba(255, 248, 230, 0.38));
  will-change: transform, opacity;
}

/* Four-point jewelry reflection. */
.hero-sparkle::before,
.hero-sparkle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.hero-sparkle::before {
  width: 100%;
  height: 14%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    currentColor 20%,
    #fffdf7 46%,
    #ffffff 50%,
    #fffdf7 54%,
    currentColor 80%,
    transparent 100%
  );
  box-shadow:
    0 0 0.14rem rgba(40, 52, 87, 0.16),
    0 0 0.32rem rgba(216, 178, 90, 0.62);
}

.hero-sparkle::after {
  width: 14%;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    currentColor 20%,
    #fffdf7 46%,
    #ffffff 50%,
    #fffdf7 54%,
    currentColor 80%,
    transparent 100%
  );
  box-shadow:
    0 0 0.14rem rgba(40, 52, 87, 0.16),
    0 0 0.32rem rgba(216, 178, 90, 0.62);
}

/* A few small diamond-shaped gold-foil flashes. */
.hero-sparkle--diamond {
  background: radial-gradient(
    circle at 42% 38%,
    #ffffff 0 13%,
    #fff8e6 14% 25%,
    currentColor 42% 100%
  );
  border: 1px solid rgba(40, 52, 87, 0.12);
  border-radius: 12%;
  transform: translate(-50%, -50%) scale(0.35) rotate(45deg);
  box-shadow:
    0 0 0.10rem rgba(40, 52, 87, 0.20),
    0 0 0.30rem rgba(216, 178, 90, 0.58),
    0 0 0.52rem rgba(255, 248, 230, 0.42);
}

.hero-sparkle--diamond::before,
.hero-sparkle--diamond::after {
  display: none;
}

@keyframes hero-jewel-twinkle {
  0%, 62%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(var(--sparkle-rotate));
  }

  68% {
    opacity: calc(var(--sparkle-opacity) * 0.45);
    transform: translate(-50%, -50%) scale(0.72) rotate(var(--sparkle-rotate));
  }

  72% {
    opacity: var(--sparkle-opacity);
    transform: translate(-50%, -50%) scale(1.12) rotate(var(--sparkle-rotate));
  }

  76% {
    opacity: calc(var(--sparkle-opacity) * 0.5);
    transform: translate(-50%, -50%) scale(0.82) rotate(var(--sparkle-rotate));
  }

  80% {
    opacity: calc(var(--sparkle-opacity) * 0.9);
    transform: translate(-50%, -50%) scale(1) rotate(var(--sparkle-rotate));
  }

  86% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45) rotate(var(--sparkle-rotate));
  }
}



/* Falling jewelry sparkles: move slowly from the top to the bottom. */
.hero-sparkle--falling {
  top: -12%;
  opacity: 0;
  animation: hero-jewel-fall var(--fall-duration) linear var(--fall-delay) infinite;
}

.hero-sparkle--falling.hero-sparkle--diamond {
  animation-name: hero-jewel-fall-diamond;
}

@keyframes hero-jewel-fall {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(0, -8vh, 0) scale(0.45) rotate(var(--sparkle-rotate));
  }

  10% {
    opacity: calc(var(--sparkle-opacity) * 0.55);
  }

  24% {
    opacity: var(--sparkle-opacity);
    transform: translate(-50%, -50%) translate3d(var(--fall-sway-a), 25vh, 0) scale(1) rotate(var(--sparkle-rotate));
  }

  48% {
    opacity: calc(var(--sparkle-opacity) * 0.72);
    transform: translate(-50%, -50%) translate3d(var(--fall-sway-b), 52vh, 0) scale(0.8) rotate(calc(var(--sparkle-rotate) + 12deg));
  }

  70% {
    opacity: var(--sparkle-opacity);
    transform: translate(-50%, -50%) translate3d(var(--fall-sway-c), 78vh, 0) scale(1.08) rotate(calc(var(--sparkle-rotate) - 8deg));
  }

  92% {
    opacity: calc(var(--sparkle-opacity) * 0.4);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(var(--fall-sway-d), 118vh, 0) scale(0.55) rotate(calc(var(--sparkle-rotate) + 18deg));
  }
}

@keyframes hero-jewel-fall-diamond {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(0, -8vh, 0) scale(0.4) rotate(45deg);
  }

  14% {
    opacity: var(--sparkle-opacity);
  }

  46% {
    transform: translate(-50%, -50%) translate3d(var(--fall-sway-b), 50vh, 0) scale(0.9) rotate(66deg);
  }

  72% {
    opacity: calc(var(--sparkle-opacity) * 0.82);
    transform: translate(-50%, -50%) translate3d(var(--fall-sway-c), 80vh, 0) scale(1.05) rotate(84deg);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(var(--fall-sway-d), 118vh, 0) scale(0.45) rotate(110deg);
  }
}


/* Improve sparkle visibility over the white parts of the hero without changing the background. */
.hero-sparkle:nth-child(3n) {
  filter:
    drop-shadow(0 0 0.12rem rgba(40, 52, 87, 0.26))
    drop-shadow(0 0 0.30rem rgba(216, 178, 90, 0.68))
    drop-shadow(0 0 0.52rem rgba(255, 248, 230, 0.52));
}

.hero-sparkle:nth-child(4n + 1)::before,
.hero-sparkle:nth-child(4n + 1)::after {
  box-shadow:
    0 0 0.16rem rgba(40, 52, 87, 0.20),
    0 0 0.38rem rgba(216, 178, 90, 0.72),
    0 0 0.58rem rgba(255, 255, 255, 0.48);
}

/* Restore the left-to-right visual guide on the FLOW arrows. */
.flow-step:not(:nth-child(4n))::after {
  animation: flow-arrow-guide 1.8s ease-in-out infinite !important;
}

@keyframes flow-arrow-guide {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.45;
  }

  50% {
    transform: translateX(0.35rem);
    opacity: 1;
  }
}

@media (max-width: 48rem) {
  .flow-step:not(:nth-child(4n))::after {
    animation: none !important;
  }

  .flow-step:nth-child(odd)::after {
    animation: flow-arrow-guide 1.8s ease-in-out infinite !important;
  }
}

/* =========================
   LEGAL PAGES / 404
   Privacy Policy・特商法表記・404ページ専用
========================= */
.legal-page,
.not-found-page {
  color: #333;
  background: #fff;
  font-family: "Yu Mincho", "Noto Serif JP", "Hiragino Mincho ProN", serif;
}

.legal-hero {
  display: grid;
  place-items: center;
  min-height: clamp(18rem, 34vw, 27rem);
  padding: 4rem 1.25rem;
  background: url("../images/common/hero-bg.webp") center / cover no-repeat;
  text-align: center;
}

.legal-hero h1 {
  margin: 0;
  color: #283457;
  font-family: "Inria Serif", "Times New Roman", serif;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.legal-hero p {
  margin: 0.65rem 0 0;
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  letter-spacing: 0.12em;
}

.legal-page__inner {
  width: min(88%, 58rem);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.legal-page__lead {
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 2;
}

.legal-section {
  padding: clamp(1.5rem, 3vw, 2.3rem) 0;
  border-top: 1px solid rgba(201, 155, 77, 0.55);
}

.legal-section:last-of-type {
  border-bottom: 1px solid rgba(201, 155, 77, 0.55);
}

.legal-section h2 {
  margin: 0 0 1rem;
  color: #283457;
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.legal-section p,
.legal-section li {
  font-size: clamp(0.94rem, 1.15vw, 1rem);
  line-height: 2;
}

.legal-section p {
  margin: 0;
}

.legal-section ul {
  margin: 0.85rem 0 0;
  padding-left: 1.4rem;
}

.legal-section a,
.legal-table a {
  color: #b56d75;
  text-underline-offset: 0.2em;
}

.legal-page__date {
  margin: 2rem 0 0;
  text-align: right;
  font-size: 0.9rem;
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(201, 155, 77, 0.55);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.8;
}

.legal-table th,
.legal-table td {
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid #e8dfd1;
  vertical-align: top;
  text-align: left;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  width: 30%;
  color: #283457;
  background: #faf7f3;
  font-weight: 500;
}

.legal-page__note {
  margin: 1.5rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid #b56d75;
  background: #fff8fa;
  font-size: 0.88rem;
  line-height: 1.8;
}

.legal-page__back {
  margin-top: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.legal-page__back a,
.not-found-page__button {
  display: inline-block;
  min-width: 14rem;
  padding: 1rem 2rem;
  border: 1px solid #283457;
  color: #283457;
  background: transparent;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.legal-page__back a:hover,
.not-found-page__button:hover {
  color: #fff;
  background: #283457;
  transform: translateY(-0.15rem);
}

.not-found-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 8rem);
  padding: clamp(5rem, 10vw, 9rem) 1.25rem;
  background: url("../images/common/hero-bg.webp") center / cover no-repeat;
  text-align: center;
}

.not-found-page__inner {
  width: min(100%, 42rem);
}

.not-found-page__number {
  margin: 0;
  color: #b56d75;
  font-family: "Inria Serif", "Times New Roman", serif;
  font-size: clamp(5rem, 15vw, 10rem);
  line-height: 0.85;
}

.not-found-page h1 {
  margin: 1.5rem 0 0;
  color: #283457;
  font-family: "Inria Serif", "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.12em;
}

.not-found-page__ja {
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.not-found-page__text {
  margin: 0.8rem 0 2.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

@media (max-width: 48rem) {
  .legal-page__inner {
    width: min(90%, 58rem);
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    padding-bottom: 0.65rem;
  }

  .legal-table td {
    padding-top: 0.7rem;
  }

  .legal-page__date {
    text-align: left;
  }
}


/* =========================
   FINAL FIX: WORKS carousel layout
   PCでは4枚表示。5枚以上でJSの自動スクロールを有効化。
   BANNER / SNS / RETOUCH / その他 共通。
========================= */
@media (min-width: 64.0625rem) {
  .works-grid--carousel.is-auto-scrolling {
    display: block;
    overflow: hidden;
    scroll-snap-type: none;
  }

  .works-grid--carousel.is-auto-scrolling > .works-carousel__track {
    display: flex;
    gap: var(--works-carousel-gap);
    width: max-content;
    will-change: transform;
  }

  .works-grid--carousel.is-auto-scrolling .works-card {
    flex: 0 0 calc((min(96vw, 70rem) - (var(--works-carousel-gap) * 3)) / 4);
    width: calc((min(96vw, 70rem) - (var(--works-carousel-gap) * 3)) / 4);
  }
}
