:root {
  --font-family-primary: 'Inter', 'YakuHanJP', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

  --font-weight-light:    300;
  --font-weight-regular:  400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  --font-size-sm:   0.75rem;
  --font-size-base: 1rem;
  --font-size-md:   1.25rem;
  --font-size-lg:   1.5rem;
  --font-size-xl:   2rem;

  --line-height-tight:   1.25;
  --line-height-normal:  1.5;
  --line-height-relaxed: 1.75;

  --color-primary: black;
  --color-text:    #222222;
}

/* ── リセット ───────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-primary);
  background-color: rgb(245, 250, 255);
}

/* ── ファーストビュー ────────────────────────────── */
.first-view {
  width: 100%;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.kv-svg {
  max-width: calc(100% - 20px);
  max-height: 103%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  animation: fadeIn 0.5s ease-in-out;
}

/* ── KV：PC / モバイル 出し分け ─────────────────── */
.kv-pc     { display: block; }
.kv-mobile { display: none;  }

/* header  */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(245, 250, 255, 1.0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0 20px;
  height: 60px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease, position 0.3s ease;
}

.header.visible {
  position: fixed;
  opacity: 1;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.header-title {
  margin: 0;
  padding: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-family-primary);
}

.header-nav {
  margin: 0;
  padding: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: var(--font-family-primary);
}

.nav-link:hover {
  color: var(--color-primary);
}


/* Hamburger menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.hamburger-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  margin: 2px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 480px) {
  .kv-pc     { display: none;  }
  .kv-mobile { display: block; width: 100%; height: 100%; }
  
  .header {
    padding: 0 15px;
    height: 50px;
  }
  
  .header-title {
    font-size: 20px;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  .header-nav {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background-color: rgba(245, 250, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }
  
  .header-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .nav-link {
    font-size: 16px;
    padding: 10px 0;
  }
}

/* ── KV：モバイル レイアウト ─────────────────────── */
.kv-mobile {
  position: relative;
}

.kv-m {
  position: absolute;
  pointer-events: none;
  -webkit-user-drag: none;
  max-width: none; /* kv-svgの継承をリセット */
}

/* 中心 */
.kv-m--center {
  width: 100%;
  top: 47%;
  left: 51%;
  transform: translate(-50%, -50%);
}

/* 左上 */
.kv-m--top-left {
  width: 50%;
  top: 10px;
  left: 5px;
}

/* 右下 2枚（縦に並べる） */
.kv-m--bottom-right-a {
  width: 65%;
  bottom: 48px;
  right: 5px;
}

.kv-m--bottom-right-b {
  width: 40%;
  bottom: 15px;
  right: 5px;
}

/* ── first-view 長押し抑制 ───────────────────────── */
.first-view,
.first-view * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.first-view img {
  -webkit-user-drag: none;
  pointer-events: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.99); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── メインコンテンツ ─────────────────────────────── */
.content {
  position: relative;
  padding: 100px 0 0 0;
  z-index: 1;
}

/* ── セクション共通 ───────────────────────────────── */s
.section-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.5rem;
  display: inline-block;
}


/* ── STATEMENTセクション ─────────────────────────── */
.statement-section {
  padding: 10rem 10px 5rem 10px;
  max-width: 1100px;
  margin: 0 auto;
}

.signature {
  font-size: var(--font-size-md);
  color: var(--color-text);
  text-align: right;
  margin-top: 7.0rem !important;
}

/* ── ABOUTセクション ─────────────────────────────── */
.about-section {
  padding: 5rem 10px 5rem 10px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-content p {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  margin: 0;
  text-align: justify;
}
@media (max-width: 480px) {
  
  .about-content p {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
}
}
/* ── フライヤーセクション ────────────────────────── */
.flyer-section {
  padding: 0 10px 5rem 10px;
  max-width: 1100px;
  text-align: center;
  margin: 0 auto;
}

.flyer-image {
  width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ── フッター ─────────────────────────────────────── */
.footer {
  padding: 30px 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: #666;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ff6bb4;
}

.copyright {
  color: #666;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  margin: 0;
}

/* ── ジャイロバナー ───────────────────────────────── */
#gyro-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

#gyro-banner.gyro-banner--visible {
  transform: translateY(0);
}

.gyro-banner__text {
  margin: 0;
  font-size: var(--font-size-sm);
  color: #444;
  flex: 1;
}

.gyro-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.gyro-banner__btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: var(--font-size-sm);
  font-family: var(--font-family-primary);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.gyro-banner__btn:active {
  opacity: 0.7;
}

.gyro-banner__btn--allow {
  background: #ff6bb4;
  color: #fff;
  font-weight: var(--font-weight-medium);
}

.gyro-banner__btn--deny {
  background: rgba(0, 0, 0, 0.08);
  color: #666;
}

/* ── レスポンシブ ─────────────────────────────────── */
@media (max-width: 768px) {
  .flyer-section { margin: 2rem 0; }
}

@media (max-width: 480px) {
  .flyer-section { margin: 1.5rem 0; }
}