/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700&display=swap');

/* ルート変数 */
:root {
  --font-en: 'Comfortaa', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-subtitle: 'Zen Maru Gothic', sans-serif;
  --color-base: #faf8f3;
  --color-text-main: #0f1e2f;
  --color-text-sub: #4a5568;
}

/* リセット */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #faf8f3;
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.02) 2px, transparent 2px),
    radial-gradient(rgba(0, 0, 0, 0.015) 3px, transparent 3px);
  background-repeat: repeat;
  background-size: 3px 3px, 8px 8px, 20px 20px;
  background-position: center top;
  background-attachment: scroll;
}

body {
  font-family: var(--font-jp), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  color: var(--color-text-main);
  line-height: 1.9;
}

/* フォント適用ルール */
h1, h2, h3, .hero-title {
  font-family: var(--font-en), sans-serif;
  letter-spacing: 0.04em;
  font-weight: 700;
}

p, li, span, small {
  font-family: var(--font-jp), sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.8;
}

/* メインコンテンツ */
main {
  min-height: calc(100vh - 200px);
  padding-top: 60px;
  position: relative;
  z-index: 2;
  background: transparent !important;
  opacity: 0;
}

section {
  background: transparent !important;
  position: relative;
  z-index: 2;
}

/* リンクのスタイル */
a {
  color: var(--color-text-main);
  text-decoration: none;
  letter-spacing: 0.03em;
}

a:hover {
  color: var(--color-text-sub);
  text-decoration: underline;
}

.page-links {
  margin-top: 2rem;
  text-align: center;
}

.page-links .sub-link {
  font-family: var(--font-jp), sans-serif;
  letter-spacing: 0.03em;
}

.page-links .sub-link a {
  font-family: var(--font-en), sans-serif;
  letter-spacing: 0.04em;
}

.hero-bottom-link,
.menu-back-link {
  text-align: center;
  width: 100%;
  margin: 0;
  padding-bottom: 1rem;
  font-family: var(--font-en), sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-bottom-link a,
.menu-back-link a {
  color: var(--color-text-main);
  text-decoration: none;
}

.hero-bottom-link a:hover,
.menu-back-link a:hover {
  text-decoration: underline;
}

.menu-back-link {
  margin-top: auto;
  margin-bottom: 1rem;
  align-self: center;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}

/* 初期非表示の安全マージン（スマホのCSS遅延対策） */
body:not(.ready) .fade-in,
body:not(.ready) [data-animate],
body:not(.ready) .page section,
body:not(.ready) img,
body:not(.ready) h1, 
body:not(.ready) h2, 
body:not(.ready) p {
  opacity: 0;
  transform: translateY(20px);
  transition: none !important; /* まだアニメ前なので無効化 */
}

/* レスポンシブ */
@media (max-width: 480px) {
  main {
    padding-top: 50px;
  }
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  z-index: 1001;
  backdrop-filter: none;
  box-shadow: none;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 1001;
}

/* ハンバーガーメニュー */
.hamburger {
  position: relative;
  width: 44px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 0;
  padding: 0;
  border: none;
  background-color: var(--color-text-main);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Particles */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform, opacity;
}

@media (max-width: 768px) {
  .particle {
    width: 5px;
    height: 5px;
  }
}

@media (max-width: 480px) {
  .particle {
    width: 4px;
    height: 4px;
  }
}

/* Heroセクション */
.hero {
  padding: 2rem 1rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  background: transparent;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  background: transparent;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0 0 1rem 0;
  letter-spacing: 0.05em;
  font-family: var(--font-en), sans-serif;
  line-height: 1.4;
  will-change: transform, opacity;
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  font-family: var(--font-en), sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-sub);
  margin: 0 0 3rem 0;
  font-weight: 500;
  letter-spacing: 0.03em;
  font-family: var(--font-subtitle), sans-serif;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.hero-visual .laptop-container,
.hero-visual .cats {
  max-width: 40%;
}

.hero-visual img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero-visual {
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
  }

  .hero-visual .laptop-container,
  .hero-visual .cats {
    max-width: 48%;
  }
}

.hero-illustration .illustration {
  max-width: 100%;
  height: auto;
  display: block;
}

.laptop-container {
  position: relative;
  display: inline-block;
}

.hero-illustration .laptop {
  max-width: 231px;
  width: auto;
  height: auto;
  position: relative;
  z-index: 1;
  transform: scale(0.85);
  will-change: transform, opacity;
}

.hero-illustration .cats {
  max-width: 162px;
  width: auto;
  height: auto;
  transform: scale(0.85);
  will-change: transform, opacity;
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 1rem 3rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .hero-illustration {
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .hero-illustration .laptop {
    max-width: 173px;
    transform: scale(0.85);
  }

  .hero-illustration .cats {
    max-width: 121px;
    transform: scale(0.85);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1.5rem 1rem 3rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-illustration {
    gap: 1rem;
    margin-top: 1.5rem;
    flex-direction: column;
  }

  .hero-illustration .laptop {
    max-width: 145px;
    transform: scale(0.85);
  }

  .hero-illustration .cats {
    max-width: 101px;
    transform: scale(0.85);
  }
}

/* 各ページ共通スタイル */
.content {
  padding: 2rem 1rem 4rem;
  max-width: 800px;
  margin: 0 auto;
  background: transparent;
}

@media (min-width: 768px) {
  .content {
    padding: 3rem 1.5rem 4rem;
  }
}

.content h1 {
  font-size: 2rem;
  color: var(--color-text-main);
  margin: 0 0 2rem 0;
  text-align: center;
  font-family: var(--font-en), sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  will-change: opacity, transform;
}

@media (min-width: 768px) {
  .content h1 {
    font-size: 2.5rem;
  }
}

/* Aboutページ */
.about-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--color-text-sub);
  font-family: var(--font-subtitle), sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.9;
  will-change: opacity, transform;
}

@media (min-width: 768px) {
  .about-content p {
    font-size: 1.15rem;
  }
}

.normal-text {
  font-size: 1.1rem;
  color: var(--color-text-sub);
  margin: 0 0 1.5rem 0;
  font-family: var(--font-subtitle), sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.9;
}

@media (min-width: 768px) {
  .normal-text {
    font-size: 1.15rem;
  }
}

.about-illustration {
  margin: 2rem 0 -1.5rem 0;
  text-align: right;
  position: relative;
  z-index: 1;
  will-change: opacity, transform;
}

.cat-walk-image {
  max-width: 101px;
  width: 100%;
  height: auto;
  display: inline-block;
}

@media (max-width: 480px) {
  .cat-walk-image {
    max-width: 76px;
  }
}

.information {
  margin-top: 3rem;
  padding: 1.5rem;
  padding-top: 2.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  border: 1px solid rgba(90, 107, 122, 0.2);
  position: relative;
  z-index: 0;
  will-change: opacity, transform;
}

.information h3 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  color: var(--color-text-main);
  font-family: var(--font-en), sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.information .info-item {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-sub);
  font-family: var(--font-subtitle), sans-serif;
  letter-spacing: 0.03em;
}

.information .info-item:last-child {
  margin-bottom: 0;
}

.information strong {
  color: var(--color-text-main);
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-subtitle), sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.info-content {
  margin-left: 0.5rem;
}

.service-item, .skill-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(90, 107, 122, 0.3);
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--color-text-main);
  font-family: var(--font-subtitle), sans-serif;
  letter-spacing: 0.03em;
}

.service-item:last-child, .skill-item:last-child {
  margin-bottom: 0;
}

/* Servicesページ */
.services-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
  line-height: 1.8;
}

/* Columnページ */
.column-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
  line-height: 1.8;
}

.column-content p {
  margin-bottom: 0.6rem;
}

.column-content p:last-of-type {
  margin-bottom: 1.5rem;
}

.service-block {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  border: 1px solid rgba(90, 107, 122, 0.2);
  padding: 2rem;
  margin-bottom: 2rem;
  will-change: opacity, transform;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  color: var(--color-text-main);
  border-bottom: 1px solid rgba(90, 107, 122, 0.3);
  padding-bottom: 0.5rem;
  font-family: var(--font-subtitle), sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.service-block p {
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
  color: var(--color-text-sub);
  font-family: var(--font-subtitle), sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.9;
}

@media (min-width: 768px) {
  .service-block p {
    font-size: 1.15rem;
  }
}

.price-list {
  margin-bottom: 1.5rem;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(90, 107, 122, 0.2);
}

.price-item:last-child {
  border-bottom: none;
}

.service-info {
  flex: 1;
  margin-right: 1rem;
}

.service-name {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--color-text-main);
  font-family: var(--font-subtitle), sans-serif;
  letter-spacing: 0.03em;
}

.service-note {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-sub);
  font-style: italic;
  line-height: 1.6;
  opacity: 0.8;
  font-family: var(--font-subtitle), sans-serif;
  letter-spacing: 0.03em;
}

.price {
  font-weight: 500;
  color: var(--color-text-main);
  white-space: nowrap;
  font-size: 0.95rem;
  font-family: var(--font-subtitle), sans-serif;
  letter-spacing: 0.03em;
}

.delivery-fee, .note {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 1rem;
  color: var(--color-text-sub);
  font-family: var(--font-subtitle), sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.8;
}

.delivery-fee strong, .note strong {
  color: var(--color-text-main);
  font-family: var(--font-subtitle), sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Contactページ */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  line-height: 1.8;
}

.contact-description {
  margin: 0 0 3rem 0;
  font-size: 1.1rem;
  color: var(--color-text-sub);
  font-family: var(--font-subtitle), sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.9;
  will-change: opacity, transform;
}

@media (min-width: 768px) {
  .contact-description {
    font-size: 1.15rem;
  }
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.google-form-btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  background-color: #bfcfc4;
  color: #0f1e2f;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-subtitle), sans-serif;
  letter-spacing: 0.03em;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.google-form-btn:hover {
  background-color: #a6b8ab;
  transform: translateY(-2px);
}

.google-form-btn:active {
  transform: translateY(0);
}

.test-btn {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  min-width: auto;
}

.email-contact {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #bfcfc4;
  max-width: 500px;
}

.email-contact p {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--color-text-sub);
  line-height: 1.9;
  font-family: var(--font-subtitle), sans-serif;
  letter-spacing: 0.03em;
}

@media (min-width: 768px) {
  .email-contact p {
    font-size: 1.15rem;
  }
}

.email-link {
  display: inline-block;
  color: #0f1e2f;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-subtitle), sans-serif;
  letter-spacing: 0.03em;
  padding: 10px 18px;
  border-radius: 8px;
  background-color: #eef2ef;
  border: 1px solid #bfcfc4;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.email-link:hover {
  background-color: #dce5df;
  border-color: #a6b8ab;
}

.contact-illustration {
  margin-top: 3rem;
  text-align: center;
  will-change: opacity, transform;
}

.cat-smile-image {
  max-width: 140px;
  width: 100%;
  height: auto;
  display: inline-block;
}

@media (max-width: 480px) {
  .cat-smile-image {
    max-width: 110px;
  }
}

/* Worksページ */
.works-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
  line-height: 1.8;
}

.works-intro {
  margin-bottom: 2.5rem;
  will-change: opacity, transform;
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.work-item {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  border: 1px solid rgba(90, 107, 122, 0.2);
  padding: 2rem;
  will-change: opacity, transform;
}

.work-item h2 {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  color: var(--color-text-main);
  font-family: var(--font-subtitle), sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .work-item h2 {
    font-size: 1.5rem;
  }
}

.work-meta {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.work-category {
  display: inline-block;
}

.work-description {
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
  color: var(--color-text-sub);
  font-family: var(--font-subtitle), sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.9;
}

@media (min-width: 768px) {
  .work-description {
    font-size: 1.15rem;
  }
}

.work-details {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(90, 107, 122, 0.2);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.work-details-content {
  flex: 1;
}

.work-details h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.1rem;
  color: var(--color-text-main);
  font-family: var(--font-subtitle), sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.work-details ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.work-details li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-sub);
  font-family: var(--font-subtitle), sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.8;
}

.work-details li:last-child {
  margin-bottom: 0;
}

.work-illustration {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  will-change: opacity, transform;
  align-self: flex-end;
}

.work-image {
  max-width: 180px;
  width: 100%;
  height: auto;
  display: block;
}

.work-image-small {
  max-width: 126px;
}

@media (max-width: 768px) {
  .work-image-small {
    max-width: 98px;
  }
}

@media (max-width: 480px) {
  .work-image-small {
    max-width: 70px;
  }
}

@media (max-width: 768px) {
  .work-details {
    flex-direction: column;
    gap: 1rem;
  }
  
  .work-illustration {
    align-self: flex-end;
  }
  
  .work-image {
    max-width: 140px;
  }
}

@media (max-width: 480px) {
  .work-image {
    max-width: 100px;
  }
}

/* レスポンシブ */
@media (max-width: 480px) {
  .content {
    padding: 1.5rem 1rem 3rem;
  }

  .content h1 {
    font-size: 1.8rem;
  }

  .about-content {
    padding: 0 15px;
  }

  .about-content p {
    font-size: 0.9rem;
  }

  .services-content {
    padding: 0 15px;
  }

  .service-block {
    padding: 1.5rem;
  }

  .price-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-info {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .service-name {
    margin-bottom: 0.2rem;
  }

  .service-note {
    font-size: 0.75rem;
  }

  .price {
    font-size: 0.9rem;
  }

  .contact-content {
    padding: 0 15px;
  }

  .contact-description {
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
  }

  .google-form-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .email-contact {
    padding: 1.25rem;
  }

  .email-contact p {
    font-size: 0.9rem;
  }

  .email-link {
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
  }

  .works-content {
    padding: 0 15px;
  }

  .works-intro {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  .works-list {
    gap: 1.5rem;
  }

  .work-item {
    padding: 1.5rem;
  }

  .work-item h2 {
    font-size: 1.2rem;
  }

  .work-description {
    font-size: 0.9rem;
  }

  .work-details h3 {
    font-size: 1rem;
  }

  .work-details li {
    font-size: 0.85rem;
  }
}

/* フッター */
footer {
  text-align: center;
  padding: 2rem 0;
  opacity: 0.6;
  color: var(--color-text-sub);
  font-size: 0.9rem;
  font-family: var(--font-jp), sans-serif;
  position: relative;
  z-index: 2;
  background: transparent;
}

/* 入場フェード（CSSのみ） */
html.js main.page {
  opacity: 0;
  transform: translateY(4px);
  filter: blur(2px);
  transition: none;
}

html.js main.page.is-ready {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 300ms ease, transform 300ms ease, filter 300ms ease;
}

/* フェード中は重なり順を明示的に制御 */
main.page {
  position: relative;
  z-index: 5;
  background: transparent !important;
}

/* 画像の比率警告回避 */
img.resp {
  height: auto;
}


.seo-hidden-text {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* メニューページ */
.menu-page {
  background: transparent;
  color: var(--color-text-main);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  position: relative;
}

.menu-cat-illustration {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateX(-30px);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.menu-cat-image {
  max-width: 120px;
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 480px) {
  .menu-cat-illustration {
    top: 70px;
  }

  .menu-cat-image {
    max-width: 80px;
  }
}

.menu-page main {
  opacity: 1 !important;
  min-height: auto !important;
  background: transparent !important;
  width: 100%;
  margin-top: 200px;
  flex: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
  margin-bottom: 2rem;
}

.menu-page footer {
  width: 100%;
  margin-top: auto;
  margin-bottom: 2rem;
}

.menu-container {
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.menu-container h1 {
  font-family: var(--font-en), sans-serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
  color: var(--color-text-main);
}

.menu-container .menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.menu-container .menu-list li {
  margin: 0;
  padding: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  will-change: opacity, transform;
}

.menu-container .menu-list a {
  display: inline-block;
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  text-align: center;
  font-family: var(--font-en), sans-serif;
  letter-spacing: 0.04em;
  position: relative;
}

.menu-container .menu-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-text-main);
  transition: width 0.4s ease-out;
}

.menu-container .menu-list a:hover {
  color: var(--color-text-sub);
}

.menu-container .menu-list a:hover::after {
  width: 100%;
}

@media (max-width: 480px) {
  .menu-container h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .menu-container .menu-list a {
    font-size: 1.2rem;
  }
}

/* ===== FOUC最小対策: 初期は透明、解除後に自然表示 ===== */
html, body { height: 100%; }
body {
  opacity: 1;
  transition: opacity .6s cubic-bezier(.22,.61,.36,1);
}
html::before,
body::before,
html::after,
body::after {
  content: none !important;
  background: none !important;
}

/* === FOUC防止 === */
html.is-preload * {
  animation: none !important;
  transition: none !important;
}

html.is-preload body {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html.is-preload body {
    opacity: 1;
  }
  /* モバイルでも最小限のフェードインを有効にする */
  * {
    animation-duration: 1s !important;
    transition-duration: 0.6s !important;
  }
}

/* 初期チラつき防止のローディングレイヤー */
#loader-overlay {
  position: fixed;
  inset: 0;
  background: #faf8f3; /* サイト背景色に合わせる */
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.4s ease-out;
  pointer-events: none;
}

body.ready #loader-overlay {
  opacity: 0;
}

body.ready.loaded #loader-overlay {
  display: none;
}