:root {
  --primary-color: #0052a4;
  --secondary-color: #333;
  --accent-color: #4d90fe;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #6c757d;
  --white-color: #ffffff;
  --background-color: #f0f8ff;
  --card-bg-color: #ffffff;
  --shadow: 0 5px 15px rgba(0, 82, 164, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* html {
  font-size: 16px;
} */

body {
  /* font-family: "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif; */
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
  /* background-color: var(--background-color); */
}

#wrap {
  overflow: hidden;
}

/* #gnavi,
footer {
  font-family: 'Noto Sans JP', sans-serif;
} */

#app_body {
  background-color: var(--background-color);
  margin: 0 0 3em;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 3rem;
}

#app_body a {
  text-decoration: none;
  color: var(--dark-color);
  transition: var(--transition);
}

#app_body a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
}
ul {
  list-style: none;
}

/* Hero Section */
.hero {
  height: 100vh;
  /* aspect-ratio: 16 / 9; */
  position: relative;
  overflow: hidden;
  margin: 0 0 3rem;
}

.hero::before {
  content: "";
  background: url(./images/bg_hero.jpg) no-repeat;
  background-size: cover;
  position: absolute;
  filter: blur(.5rem);
  width: 100%;
  top: 0;
  height: 100%;
  left: 0;
  z-index: 0;
}

.hero .container {
  /* display: flex;
  align-items: center;
  justify-content: space-between; */
  background: url(./images/bg_hero.jpg) no-repeat;
  height: 100%;
  background-position: center;
}

.hero-content {
  flex: 1;
  padding-right: 3rem;
}

.hero-image {
  position: absolute;
  top: 6%;
  right: 4%;
  /* width: 16%; */
  height: calc(100vh - 12%);
}

.hero h1 {
  position: absolute;
  top: 6%;
  left: 2%;
  width: 36%;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-weight: 600;
}

.hero .app-buttons {
  position: absolute;
  bottom: 6%;
  left: 2%;
}

.app-buttons {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
}

.app-buttons a {
  display: flex;
  align-items: flex-start;
}

.app-button img {
  height: 8rem;
  transition: var(--transition);
}

.app-button:hover img {
  transform: translateY(-5px);
}

.hero-name {
  position: absolute;
  top: 56%;
  left: 33%;
  text-align: center;
  font-size: 2rem;
  line-height: 1.25em;
  font-weight: 600;
  background: rgba(255,255,255, 0.5);
  padding: 0.5rem;
}

.hero-name span {
  font-size: .75em;
}

.phone-image {
  /* max-height: 500px; */
  position: relative;
  z-index: 2;
  width: auto;
  height: 100%;
}

.feature-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.feature-bubble {
  position: absolute;
  background-color: var(--white-color);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-shadow: var(--shadow);
  animation: float 3s infinite ease-in-out;
}

.feature-bubble img {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
}

.feature-bubble span {
  font-size: 12px;
  font-weight: 600;
}

.news-bubble {
  top: 20%;
  right: -30px;
  width: 80px;
  height: 80px;
  animation-delay: 0.5s;
}

.tv-bubble {
  top: 50%;
  right: -20px;
  width: 90px;
  height: 90px;
  animation-delay: 1s;
}

.point-bubble {
  bottom: 30%;
  left: -30px;
  width: 85px;
  height: 85px;
  animation-delay: 1.5s;
}

.content-bubble {
  bottom: 15%;
  right: 10%;
  width: 75px;
  height: 75px;
  animation-delay: 2s;
}

/* Feature Sections */
.feature-section {
  padding: 6rem 0;
  position: relative;
}

.alt-bg {
  background-color: #e6f2ff;
}

.feature-section .container {
  position: relative;
  /* display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem; */
}

/* .feature-content,
.feature-image {
  flex: 1;
} */

.feature-content {
  width: 70%;
  margin: 3.6rem 0 0 1.8rem !important;
}

#about-app .app-icon {
  max-width: 240px;
  margin: 0 1.8rem 0 0;
}

#about-app .app-icon img {
  filter: drop-shadow(0.5em 0.5em 0.5em #999);
}

#about-app .feature-content {
  width: 100%;
}

#tv-radio .feature-content {
  width: 48%;
}

.feature-image {
  width: 24%;
}

#tv-radio .feature-image {
  width: 52%;
}

.feature-image.reveal-on-scroll {
  padding: 2rem;
  margin: 0;
}

.feature-box {
  display: flex;
}

.feature-image-inner {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.feature-image-inner img {
  width: 46%;
}

/* .feature-icon {
  margin-bottom: 20px;
} */

.circle {
  width: 6rem;
  height: 6rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle i {
  font-size: 3rem;
  color: #fff;
}

.feature-section h2 {
  font-size: 3.6rem;
  /* margin-bottom: 15px; */
  color: var(--white-color);
  position: absolute;
  z-index: 1;
  left: -1.8rem;
  top: -2.4rem;
  box-shadow: 0.2em 0.15em 0 rgba(128, 128, 128, 1);
  background: var(--primary-color);
  padding: 0.1em 0.5em;
  display: flex;
  align-items: center;
}

#news.feature-section h2 {
  background: rgba(0, 153, 255, 1);
}

#tv-radio.feature-section h2 {
  background: #6666FF;
  background: linear-gradient(45deg,rgba(102, 102, 255, 1) 50%, rgba(204, 0, 255, 1) 50%);
}

#points.feature-section h2 {
  background: rgba(255, 51, 153, 1);
}

#other-content.feature-section h2 {
  background: rgba(255, 170, 51, 1);
}

.feature-highlight {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.feature-list {
  /* margin-bottom: 30px; */
}

.feature-list li {
  font-size: 1.6em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  padding: 0 0 0 1em;
  text-align: left;
}

.feature-list li i {
  color: var(--primary-color);
  margin-right: 10px;
}

.feature-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
}

.feature-button:hover {
  background-color: var(--accent-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 82, 164, 0.2);
}

.phone-container {
  position: relative;
  text-align: center;
}

.phone-screen {
  /* max-width: 75%; */
  box-shadow: var(--shadow);
}

/* Notification Animation */
.notification-animation {
  position: absolute;
  top: 12%;
  right: -12rem;
  z-index: 10;
}

.notification {
  background-color: var(--white-color);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 82, 164, 0.2);
  animation: slideIn 5s infinite;
  width: 27rem;
}

.notification-icon {
  background-color: var(--primary-color);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.6rem;
}

.notification-icon i {
  color: var(--white-color);
  font-size: 1.8rem;
}

.notification-content h4 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.notification-content p {
  font-size: 1.4rem;
  color: var(--gray-color);
}

/* Interaction Animation */
.interaction-animation {
  position: absolute;
  z-index: 10;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
  display: flex;
  align-items: anchor-center;
  justify-content: center;
}

.interaction-bubble {
  background-color: var(--primary-color);
  color: var(--white-color);
  font-size: 1.6rem;
  border-radius: 1rem;
  padding: 0.75rem 1.25rem;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 82, 164, 0.2);
  animation: pulse 2s infinite;
}

.interaction-bubble i {
  margin-right: 1rem;
}

/* Points Animation */
.points-animation {
  position: relative;
}

.coin-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.coin {
  position: absolute;
  width: 40px;
  height: 40px;
  animation: coinFall 3s infinite linear;
}

.coin:nth-child(1) {
  top: -50px;
  left: 20%;
  animation-delay: 0.5s;
}

.coin:nth-child(2) {
  top: -50px;
  left: 50%;
  animation-delay: 1.2s;
}

.coin:nth-child(3) {
  top: -50px;
  left: 80%;
  animation-delay: 2s;
}

/* Other Content Section */
.section-title {
  text-align: center;
  font-size: 2.4rem;
  color: var(--secondary-color);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.content-grid > .content-card {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  border-radius: 0;
  padding: 4rem 2rem;
}

.content-grid > .content-card > .content-card {
  width: 48%;
  margin: 0 !important;
}

.content-card {
  background-color: var(--card-bg-color);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.content-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 82, 164, 0.15);
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
}

.content-icon {
  width: 4rem;
  height: 4rem;
  background-color: #e6f2ff;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.6rem 0 0;
}

.content-icon i {
  font-size: 2rem;
  color: #fff;
}

.content-card h3 {
  font-size: 2.4rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.content-card p {
  color: var(--gray-color);
  font-size: 1.6rem;
  margin: 0.6rem 0 0;
}

#other-content .content-card img[src="./images/capture_weaher.jpg"] {
  max-height: 10rem;
  object-fit: cover;
  width: 100%;
  object-position: top;
}

#other-content .content-card img {
  max-height: 10rem;
}

/* Download Section */
#download .container {
  max-width: 960px;
}

.download-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #e6f2ff 0%, #c9e2ff 100%);
}

.download-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem
}

/* .download-content,
.download-image {
  flex: 1;
} */

.download-image {
  width: 33%;
  margin: 0 auto !important;
  padding: 2rem !important;
}

.download-content {
  width: 67%;
  margin: 0 !important;
  padding: 2rem !important;
}

.download-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-weight: 500;
  text-align: center;
}

.download-content h2 span {
  color: var(--primary-color);
  font-size: 1.25em;
  padding: 0 0.1em 0 0;
  position: relative;
  display: inline-block;
  font-weight: 600;
}

.download-content h2 span::before {
  content: "";
  width: 0.25em;
  height: 0.25em;
  background: var(--primary-color);
  display: block;
  position: absolute;
  border-radius: 50%;
  top: 0;
  left: calc(50% - 0.225em);
}

.download-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--gray-color);
}

.download-content img {
  height: 12rem;
}

/* .app-screens {
  max-height: 500px;
} */

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes slideIn {
  0%,
  100% {
    opacity: 0;
    transform: translateX(50px);
  }

  10%,
  90% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes coinFall {
  0% {
    transform: translateY(-50px) rotate(0deg);
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateY(400px) rotate(360deg);
    opacity: 0;
  }
}

/* Animation Classes */
.animate-text {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards;
}

.animate-fade {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.animate-slide-in {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1s forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.6s;
}

.delay-3 {
  animation-delay: 0.9s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Reveal on Scroll Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
  box-shadow: var(--shadow);
  padding: 6rem 3rem 2rem;
  margin: 0 0 0 1.8rem;
  background: #fff;
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {

  .hero .container {
    background-position: top center;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-image {
    height: calc(100vh - 30%);
  }

  .app-buttons {
    bottom: auto;
    top: 78%;
  }

  .feature-section .container {
    flex-direction: column;
  }

  .feature-content,
  .feature-image {
    width: 100%;
    text-align: center;
  }

  #about-app .feature-content,
  .feature-content,
  #tv-radio .feature-content {
    width: calc(100% - 1.8rem);
    margin: 3rem 0 0 !important;
    padding: 3rem 1.5rem 1rem;
  }

  .feature-image {
    width: 30%;
    margin: 0 auto !important;
  }

  .feature-highlight {
    font-size: 1.2rem;
    text-align: left;
  }

  #tv-radio .feature-image {
    width: 60%;
  }

  .circle {
    margin: 0 auto 1.25rem;
  }

  .download-section .container {
    flex-direction: column;
    text-align: center;
  }

  .download-content {
    margin-bottom: 3rem;
  }

  .app-buttons {
    justify-content: center;
  }
}


@media screen and (max-width: 899px) {
  header .lower:first-child {
    height: 64px;
    box-sizing: border-box;
  }

  .hero-name {
    left: 18%;
    font-size: 1.4rem;
  }

  .app-button img {
    height: 5rem;
  }
}

@media (max-width: 768px) {
  .container {
    gap: 2rem;
  }

  .hero {
    margin: 0;
  }

  .hero .container {
    flex-direction: column;
    background-size: cover;
  }

  .hero-content {
    text-align: center;
    padding-right: 0;
    margin-bottom: 50px;
  }

  .hero-name {
    left: 12%;
    font-size: 1.2rem;
  }

  .app-buttons {
    justify-content: center;
    gap: 1.2rem;
  }

  .feature-image.reveal-on-scroll {
    padding: 1rem;
  }

  .feature-section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  #about-app .app-icon {
    max-width: 180px;
    margin: 0 auto;
  }

  .notification-animation {
    top: 10%;
    right: -4rem;
  }

  .notification {
    width: 16rem;
    padding: 0.5rem 1rem;
  }

  .notification-icon {
    width: 2rem;
    height: 2rem;
    margin-right: 1rem;
  }

  .notification-icon i {
    font-size: 1.2rem;
  }

  .notification-content h4 {
    font-size: 1.2rem;
    margin: 0;
  }

  .notification-content p {
    font-size: .8rem;
  }

  .interaction-bubble {
    font-size: 1.125rem;
  }

  .content-header {
    display: block;
  }

  .content-grid > .content-card {
    padding: 3rem 1.5rem 2rem;
  }

  .content-grid > .content-card > .content-card {
    padding: 2rem 1rem;
  }

  .content-icon {
    margin: 0 auto;
  }

  .content-card h3 {
    font-size: 1.8rem;
    margin: 0.25rem 0 0;
  }

  .content-card p {
    font-size: 1rem
  }
}

@media (max-width: 640px) {
  .hero h1 {
    top: 2%;
    width: 50%;
  }

  .hero-image {
    top: 4%;
    width: auto;
    height: calc(100vh - 36%);
    aspect-ratio: 185 / 799;
  }

  .hero .app-buttons {
    top: auto;
    bottom: 4%;
  }

  .app-button img {
    height: 3rem;
  }

  .feature-section h2 {
    font-size: 2rem;
  }

  .feature-box {
    display: block;
  }

  .feature-list li {
    padding: 0;
  }

  .feature-image {
    width: 72%;
  }

  #tv-radio .feature-image {
    width: 88%;
  }

  .interaction-animation {
    top: auto;
    bottom: 30%;
  }

  .content-grid > .content-card > .content-card {
    width: 100%;
  }

  .download-image {
    width: 50%;
    padding: 1rem !important;
  }

  .download-content {
    width: 100%;
    padding: 1rem !important;
  }

  .download-content h2 {
    font-size: 2rem;
  }

}