/* ibm-plex-sans-jp-regular - latin_japanese */
@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans JP';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/ibm-plex-sans-jp-v7-japanese_latin-regular.woff2') format('woff2');
}
/* ibm-plex-sans-jp-700 - latin_japanese */
@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans JP';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/ibm-plex-sans-jp-v7-japanese_latin-700.woff2') format('woff2');
}

:root {
  --bg: #f6f8fa;
  --header-bg: rgb(254, 215, 229);
  --footer-bg: rgb(253, 203, 219);
  --surface: #ffffff;
  --elevated: #ffffff;
  --text: #1e2028;
  --muted: #6a737d;
  --accent: #ff3aa9;
  --accent6: #e52f98;
  --ease-out-cubic: cubic-bezier(0.215, 0.610, 0.355, 1);
}

/* Reset-ish */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-y: scroll;
}

/* ★★★ コンテンツをデフォルトで非表示 ★★★ */
html:not(.page-loaded) .site-content-wrapper {
  opacity: 0;
  visibility: hidden;
}

body {
  height: auto;
  overflow-x: hidden;
  margin: 0;
  padding-top: 75px;
  font-weight: 400;
  position: relative;
  isolation: isolate;
  color: var(--text);
  /* ★★★ フォントをIBM Plex Sans JPに統一 ★★★ */
  font-family: "IBM Plex Sans JP", system-ui, -apple-system, "Hirago Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  background-image: url('../img/Lovvbox_BG-1.png');
  background-repeat: repeat;
  background-attachment: scroll;
  transition: opacity 0.4s ease-out;
}

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

.site-content-wrapper {
  flex: 1 0 auto;
  width: 100%;
  overflow-x: hidden;
  transition: opacity 0.4s ease-out; /* ★★★ フェードインアニメーションを追加 ★★★ */
}

/* Layout utilities */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.pt-80 {
  padding-top: 80px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-24 {
  margin-top: 24px;
}
.narrow {
  max-width: 800px;
  margin: 0 auto;
}
.row {
  display: flex;
  align-items: center;
}
.gap-12 {
  gap: 12px;
}
.stack-24 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.grid {
  display: grid;
  gap: 24px;
}
.two {
  grid-template-columns: 1fr 1fr;
}
.three {
  grid-template-columns: repeat(3, 1fr);
}
.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) {
  .three,
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .two,
  .three,
  .cards-4 {
    grid-template-columns: 1fr;
  }
}

/* Type */
.h1, .h2, .h3, .h4 {
  font-family: "IBM Plex Sans JP", sans-serif;
  font-weight: 700;
}

.h1 {
  font-size: 40px;
  letter-spacing: -0.01em;
}
.h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
}
.h3 {
  font-size: 22px;
}
.h4 {
  font-size: 18px;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.prose {
  line-height: 1.8;
  color: var(--muted);
}

/* General Sections */
.section {
  padding: 80px 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.underline {
  position: relative;
  color: var(--muted);
}
.underline:hover {
  color: var(--text);
}
.underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-cubic);
}
.underline:hover::after {
  width: 100%;
}

/* Animations & Transitions */
[data-reveal] {
  transition: transform 0.8s var(--ease-out-cubic), opacity 0.8s var(--ease-out-cubic);
}
[data-reveal].is-visible {
  transform: none;
  opacity: 1;
}
[data-reveal="fade-in-right"] {
  transform: translateX(30px);
  opacity: 0;
}
[data-reveal="zoom-in"] {
  transform: scale(0.95);
  opacity: 0;
}

#app.fade-out {
  opacity: 0;
  transition: opacity 0.24s ease;
}
#app.fade-in {
  opacity: 1;
  transition: opacity 0.24s ease;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  #app {
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .h1 {
    font-size: 32px;
  }
  .h2 {
    font-size: 24px;
  }
  .h3 {
    font-size: 20px;
  }
  .h4 {
    font-size: 18px;
  }

  .section {
    padding: 60px 0;
  }
  .section-head {
    margin-bottom: 24px;
  }
}

article h1,
aside h1,
nav h1,
section h1 {
  font-size: inherit;
}
