/* Basic Reset & Font Settings */
:root {
  --primary-color-start: #006AE5;
  --primary-color-end: #4BA5F0;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-color-light: #f8f9fa;
  --card-background: #ffffff;
  --highlight-color: #ebf5ff;
  --border-color: #e0e0e0;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background-color-light);
  color: var(--text-color-dark);
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 700;
  margin-top: 0;
}

/* Hero Section (First View) */
.hero {
  background: linear-gradient(to bottom, var(--primary-color-start), var(--primary-color-end));
  position: relative;
  color: var(--text-color-light);
  padding: 6rem 1.5rem 1rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0; /* 右寄せ */
  width: 180px; /* 画像の幅を指定 */
  height: 217px; /* 画像の高さを指定 */
  background: url('../img/back_sozai_top.png') no-repeat right top/contain;
  opacity: 0.8; /* 透明度を調整 */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  text-align: left; /* コンテンツを左寄せ */
}

/* Tagline (Above Logo) */
.tagline {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  padding: 0.3rem 0; /* 左右のパディングを削除 */
  background-color: transparent; /* 背景色を透明に */
  border-radius: 0; /* 角丸を削除 */
}


/* Logo adjustments */
.logo {
  max-width: 180px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
  display: block; /* ブロック要素として表示 */
  margin-left: 0; /* 左マージンを0に設定 */
}

.logo:hover {
  transform: scale(1.05);
}

/* Store Links */
.store-links {
  display: flex;
  justify-content: center; /* 中央寄せに変更 */
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 0.5rem;
}


.store-links a {
  display: inline-block;
}

.store-links img {
  height: 50px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

@media (min-width: 550px) {
  .store-links img {
    height: 70px;
  }
}

@media (max-width: 549px) {
  .store-links img {
    height: 50px;
  }
}

.store-links img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Main Content Area */
main {
  padding: 3rem 1.5rem;
}

section {
  max-width: 1080px;
  margin: 0 auto 5rem;
}

section h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2.5rem;
  color: var(--primary-color-start);
  position: relative;
}

section h2:after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to bottom, var(--primary-color-start), var(--primary-color-end));
  margin: 0.8rem auto 0;
}

/* App Overview */
.overview-section {
  text-align: center;
}

.overview-text {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.overview-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Detailed Features */
.feature-detailed {
  display: flex;
  flex-direction: column;
  margin-bottom: 4rem;
  background-color: var(--card-background);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-text {
  padding: 2rem;
}

.feature-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--primary-color-start);
}

.feature-list {
  padding-left: 1.2rem;
  margin: 0;
}

.feature-list li {
  margin-bottom: 0.8rem;
}

.feature-list li strong {
  color: var(--primary-color-start);
}

/* Feature Images (Screenshots) */
.feature-img {
  width: 100%;
  max-width: 300px; /* 最大幅を制限 */
  height: auto;
  object-fit: contain; /* アスペクト比を維持したまま収まるようにする */
  display: block;
  margin: 0 auto; /* 中央揃え */
}

@media (min-width: 768px) {
  .feature-img {
    width: 40%;
    max-width: 280px; /* デスクトップでも最大幅を制限 */
    max-height: 450px; /* 最大高さも制限 */
    object-fit: contain;
  }
}


/* Benefits Section */
.benefits-section {
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.benefit-card {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color-start);
}

/* Download CTA Section */
.download-section {
  text-align: center;
  background: linear-gradient(to bottom, var(--primary-color-start), var(--primary-color-end));
  color: var(--text-color-light);
  padding: 4rem 1.5rem;
  border-radius: 16px;
  margin-bottom: 5rem;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-text {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.download-section .store-links {
  margin-top: 2rem;
  justify-content: center; /* CTAセクションのストアリンクは中央寄せを維持 */
}

.download-section .store-links img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

/* Footer */
footer {
  background-color: var(--text-color-dark);
  color: var(--text-color-light);
  text-align: center;
  padding: 3rem 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-color-light);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 0.875rem;
  opacity: 0.7;
  margin: 0;
}

/* Detailed Features */
.feature-detailed {
  display: flex;
  flex-direction: column;
  margin-bottom: 4rem;
  background-color: var(--card-background);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding-bottom: 1rem; /* 下部にパディングを追加 */
}

@media (min-width: 768px) {
  .feature-detailed {
    flex-direction: row;
    align-items: center;
    padding: 1rem; /* 全体のパディングを追加 */
  }

  .feature-text {
    flex: 1;
    padding: 1.5rem; /* テキスト部分のパディングを調整 */
  }
}

@media (min-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
