/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: #ffffff; /* 四角の外側は常に白 */
  font-family: 'LINE Seed JP', 'Roboto', sans-serif;
  overflow-x: hidden;
  overflow-y: auto; /* スクロール可能にする */
  color: #0b355e;
}

/* Background Rounded Rectangle (Hero Container) */
.hero-container {
  position: relative;
  margin: 20px;
  width: calc(100% - 40px);
  height: calc(100vh - 40px); /* スクロール時に画面全体に伸びないよう、vh単位に固定 */
  
  /* 角丸の設定 */
  border-radius: 45px;
  
  /* 左上 (#D1F0FF) から右下 (#06ABDB) へのグラデーション */
  background: linear-gradient(135deg, #D1F0FF 0%, #06ABDB 100%);
  
  /* アジロテックの雰囲気に合わせたスムーズな変化とシャドウ効果 */
  box-shadow: 0 10px 30px rgba(6, 171, 219, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Language Switcher Toggle */
.lang-switcher {
  position: absolute;
  top: 30px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 100;
  font-size: 0.85rem;
  font-weight: 500;
}

.lang-btn {
  color: rgba(11, 53, 94, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  color: #0b355e;
}

.lang-btn.active {
  color: #0b355e;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.lang-divider {
  color: rgba(11, 53, 94, 0.25);
  font-size: 0.8rem;
  user-select: none;
}

/* Responsive Styles for Container */
@media all and (max-width: 1024px) {
  .hero-container {
    margin: 15px;
    width: calc(100% - 30px);
    height: auto;
    min-height: calc(100vh - 30px); /* モバイル時もスクロールに対応 */
    border-radius: 30px;
  }
  
  .lang-switcher {
    top: 25px;
    right: 25px;
  }
}

/* Hero Content Layout */
.hero-content {
  width: 100%;
  height: 100%;
  padding: 4% 6%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1400px;
}

/* Left side text styling */
.hero-text-side {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 620px;
}

/* App Branding Header */
.app-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease;
  overflow: hidden; /* Cleanly clip the icon image corners */
}

.app-icon:hover {
  transform: scale(1.05) rotate(5deg);
}

.app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-title-group {
  display: flex;
  flex-direction: column;
}

.app-name {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0b355e;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.app-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a5e78;
  letter-spacing: 0.5px;
  margin-top: 6px;
  padding-left: 3px;
}

/* Slogan */
.hero-slogan {
  font-size: 2.6rem;
  font-weight: 700;
  color: #0b355e;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

/* Description */
.hero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #254d70;
  margin-bottom: 28px;
  font-weight: 400;
}

/* Feature Badges */
.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.badge {
  font-size: 0.85rem;
  font-weight: 500;
  color: #0b355e;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Download / App Store Badge Section */
.download-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-store-badge-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 16px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.app-store-badge-container:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.50);
}

.app-store-badge {
  height: 34px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity 0.3s ease;
}

.coming-soon-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0b355e;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Right side visual styling - Floating curved paper */
.hero-visual-side {
  flex: 0.95;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.iphone-mockup-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
  height: 100%;
  width: 100%;
}

.screenshot-paper-container {
  position: relative;
  display: inline-block;
  height: 72vh;
  border-radius: 20px;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-style: preserve-3d;
}

.screenshot-paper-container:hover {
  transform: translateY(-6px) rotateY(-2deg) rotateX(2deg);
}

.iphone-screen {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 20px;
}

/* Cylindrical paper curl overlay (shadow shading on left/right and highlight reflection in center) */
.paper-curl-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(
    to right,
    rgba(0, 20, 50, 0.08) 0%,
    rgba(0, 20, 50, 0.02) 8%,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 80%,
    rgba(0, 20, 50, 0.02) 92%,
    rgba(0, 20, 50, 0.08) 100%
  );
  pointer-events: none;
  z-index: 2;
  transform: translateZ(1px); /* Explicitly put in front of the image in 3D rendering */
}

/* Curled paper shadows underneath the bottom corners */
.paper-shadow-left,
.paper-shadow-right {
  position: absolute;
  bottom: 12px;
  width: 44%;
  height: 18%;
  background: rgba(0, 15, 30, 0.38);
  box-shadow: 0 18px 24px rgba(0, 10, 30, 0.48);
  z-index: -1;
  transition: all 0.5s ease;
}

.paper-shadow-left {
  left: 8px;
  transform: rotate(-8deg) translateZ(-2px); /* Explicitly put behind the image in 3D rendering */
}

.paper-shadow-right {
  right: 8px;
  transform: rotate(8deg) translateZ(-2px); /* Explicitly put behind the image in 3D rendering */
}

/* Hover state transitions for paper curl shadows */
.screenshot-paper-container:hover .paper-shadow-left {
  transform: rotate(-12deg) translateZ(-2px) translateY(2px);
  box-shadow: 0 26px 32px rgba(0, 10, 30, 0.58);
}

.screenshot-paper-container:hover .paper-shadow-right {
  transform: rotate(12deg) translateZ(-2px) translateY(2px);
  box-shadow: 0 26px 32px rgba(0, 10, 30, 0.58);
}

/* Keyframes for soft floating animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Hide desktop-only or mobile-only elements */
.mobile-only {
  display: none;
}

/* Responsive details for layouts */
@media all and (max-width: 1024px) {
  html, body {
    overflow-y: auto; /* Allow scroll on tablets/mobiles if content exceeds viewport */
  }
  .hero-container {
    height: auto;
    min-height: calc(100% - 30px);
    display: block;
  }
  .hero-content {
    flex-direction: column;
    padding: 60px 24px;
    height: auto;
    gap: 45px;
    align-items: center;
  }
  .hero-text-side {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }
  .app-brand {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }
  .app-icon {
    width: 72px;
    height: 72px;
  }
  .hero-slogan {
    font-size: 2.2rem;
    margin-bottom: 16px;
  }
  .hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .feature-badges {
    justify-content: center;
    margin-bottom: 24px;
  }
  .download-section {
    justify-content: center;
    width: 100%;
  }
  .hero-visual-side {
    width: 100%;
    height: auto;
  }
  .screenshot-paper-container {
    height: 60vh;
  }
}

@media all and (max-width: 480px) {
  .mobile-only {
    display: inline;
  }
  .hero-slogan {
    font-size: 1.8rem;
  }
  .screenshot-paper-container {
    height: 52vh;
  }
  .app-name {
    font-size: 1.8rem;
  }
  .app-subtitle {
    font-size: 0.85rem;
  }
}

/* ==========================================
   2ページ目：主要機能紹介セクション (Features)
   ========================================== */

.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px 80px 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 120px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0b355e;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.05rem;
  color: #254d70;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 160px; /* 機能ごとの上下間隔 */
}

.feature-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

/* 偶数番目の項目はレイアウトを左右反転 */
.feature-item:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-text-box {
  flex: 1.1;
  max-width: 500px;
}

.feature-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: #06abdb;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #0b355e;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.feature-slogan {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a5e78;
  margin-bottom: 20px;
  line-height: 1.3;
}

.feature-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #254d70;
  font-weight: 400;
}

.feature-img-box {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-img {
  max-height: 480px;
  max-width: 100%;
  width: auto;
  border-radius: 16px;
  box-shadow: 
    0 15px 35px rgba(0, 30, 60, 0.06), 
    0 5px 15px rgba(0, 30, 60, 0.03);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.feature-img:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 25px 45px rgba(0, 30, 60, 0.12),
    0 10px 20px rgba(0, 30, 60, 0.06);
}

/* Gradient Wrapper for transparent images (Feature 1 and 4) */
.feature-img-gradient-wrapper {
  background: linear-gradient(135deg, #D1F0FF 0%, #06ABDB 100%);
  border-radius: 24px;
  padding: 35px 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 
    0 15px 35px rgba(0, 30, 60, 0.08), 
    0 5px 15px rgba(0, 30, 60, 0.03);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  width: 100%;
  max-width: 380px;
}

.feature-img-gradient-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 25px 45px rgba(0, 30, 60, 0.12),
    0 10px 20px rgba(0, 30, 60, 0.06);
}

.feature-img-gradient-wrapper .feature-img {
  max-height: 410px;
  width: auto;
  border-radius: 26px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: none;
}

.feature-img-gradient-wrapper .feature-img:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* ==========================================
   フッター (Footer)
   ========================================== */

.app-footer {
  background-color: #fafbfc;
  border-top: 1px solid #f0f3f5;
  padding: 50px 20px;
  text-align: center;
  margin-top: 100px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.copyright {
  font-size: 0.9rem;
  color: #8fa0b0;
  letter-spacing: 0.5px;
}

.footer-link {
  color: #8fa0b0;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-left: 5px;
}

.footer-link:hover {
  color: #06abdb;
  text-decoration: underline;
}

/* ==========================================
   レスポンシブ (Responsive)
   ========================================== */

@media all and (max-width: 1024px) {
  .features-section {
    padding: 80px 30px;
  }
  
  .section-header {
    margin-bottom: 80px;
  }
  
  .features-list {
    gap: 100px;
  }
  
  .feature-item, 
  .feature-item:nth-child(even) {
    flex-direction: column !important; /* 縦積みへ変更 */
    gap: 40px;
    text-align: center;
  }
  
  .feature-text-box {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .feature-img {
    max-height: 420px;
  }
  
  .feature-img-gradient-wrapper {
    padding: 25px 45px;
    max-width: 320px;
  }
  
  .feature-img-gradient-wrapper .feature-img {
    max-height: 350px;
  }
}

@media all and (max-width: 480px) {
  .lang-switcher {
    top: 20px;
    right: 20px;
  }

  .features-section {
    padding: 60px 20px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .feature-title {
    font-size: 1.5rem;
  }
  
  .feature-slogan {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }
  
  .feature-img {
    max-height: 340px;
  }
  
  .feature-img-gradient-wrapper {
    padding: 20px 30px;
    max-width: 260px;
  }
  
  .feature-img-gradient-wrapper .feature-img {
    max-height: 280px;
  }
}
