/* ========================================
   Base Styles & Layout
   ======================================== */

/* Reset & Base */
* {
  box-sizing: border-box;
}

body.front-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background-color: #1b1e46;
  color: #ffffff;
  touch-action: pan-y; /* 縦方向のスクロールを有効化 */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: "Sniglet", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden; /* 横方向のスクロールを無効化 */
}

#app {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  width: 100%;
  height: 100vh;
  background-color: #1b1e46;
}

/* ========================================
   Typography
   ======================================== */
/* front-page専用の見出しスタイル */
body.front-page h1, 
body.front-page h2, 
body.front-page h3, 
body.front-page h4, 
body.front-page h5, 
body.front-page h6 {
  margin: 0;
  font-family: "Sniglet", "Helvetica", "Helvetica Neue", Arial, sans-serif;
  color: #ffffff;
}

body.front-page h3 {
  font-size: 22px;
  font-weight: normal;
}

body.front-page h4 {
  font-size: 20px;
  font-weight: normal;
}

/* ========================================
   Tab Content Layout
   ======================================== */
.tab-content {
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* iOSでのスムーズスクロール */
}

.tab-content.active {
  display: flex;
  gap: 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Camera Tab Layout */
#cameraTab {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Gallery Tab Layout */
#galleryTab {
  justify-content: flex-start;
  margin-top: 80px;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 80px);
}

/* Settings Tab Layout */
#settingsTab {
  justify-content: flex-start;
  margin-top: 80px;
  flex-direction: column;
  align-items: stretch;
  min-height: calc(100vh - 80px);
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px; /* 下部の余白を減らす */
}

/* ========================================
   Common Components
   ======================================== */
.settings-content {
  padding: 30px 20px;
  min-width: 300px;
  color: rgba(255,255,255,0.5);
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow-y: visible;
}

body.front-page .settings-content h3 {
  text-align: center;
  color: #ffffff;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
}

/* ========================================
   Effects & Animations
   ======================================== */
.shutter-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 0.1s ease;
}

.shutter-effect.active {
  opacity: 1;
}
