/* ============================================
   pinoapps - Global Style (2025 完全修正版)
   ©2025 pinoapps.com
   ============================================ */

/* ------------------------------
   基本設定
------------------------------ */
:root {
  --bg-dark: linear-gradient(180deg, #1e1735 0%, #281f49 100%);
  --accent: #b7a5ff;
  --text-main: #1a1530;
  --text-light: #e4e0ff;
  --border-light: rgba(180, 160, 255, 0.3);
  --blur: blur(12px);
}

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

html, body {
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.3s ease;
}
a:hover {
  color: #d0caff;
}

/* ------------------------------
   ヘッダー
------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 72px;
  background: rgba(20, 10, 40, 0.6);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  transition: 0.4s ease;
}

.site-header.scrolled {
  background: rgba(20, 10, 40, 0.9);
  height: 64px;
}

.logo {
  height: 42px;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-light);
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
nav a:hover::after {
  width: 100%;
}

.lang-switch {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.lang-switch:hover {
  border-color: rgba(180, 160, 255, 0.6);
}

/* ------------------------------
   ヒーローセクション
------------------------------ */
.hero {
  position: relative;
  height: 65vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding-top: 72px;
}

.hero-content {
  z-index: 5;
  position: relative;
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 2.4rem;
  line-height: 1.6;
  font-weight: 600;
  margin-bottom: 1rem;
  white-space: normal;
  word-break: keep-all;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content p {
  opacity: 0.9;
  font-size: 1rem;
}

.scroll-down {
  margin-top: 1.2rem;
  opacity: 0.6;
  font-size: 1.4rem;
}

/* ヒーロー背景 */
.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
}
.hero-bg .layer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.layer-mid {
  background: linear-gradient(180deg, rgba(60,50,90,0.3), rgba(10,0,40,0.8));
}

/* ------------------------------
   セクション共通
------------------------------ */
section {
  padding: 5rem 2rem;
  text-align: center;
}

.section-space {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 640px;
  margin: 0 auto 2.4rem;
  opacity: 0.85;
  font-size: 1rem;
}

/* ------------------------------
   アプリカード
------------------------------ */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin: 0 auto;
  max-width: 1000px;
}

.app-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  width: 280px;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: 0.4s ease;
  backdrop-filter: var(--blur);
}
.app-card:hover {
  border-color: rgba(180,160,255,0.6);
  background: rgba(255,255,255,0.08);
  transform: translateY(-6px);
}

.app-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.app-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.app-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.6rem;
}

/* ------------------------------
   Visionカード
------------------------------ */
.value-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.8rem;
  transition: 0.3s ease;
  text-align: left;
  backdrop-filter: var(--blur);
}
.value-card:hover {
  border-color: rgba(180,160,255,0.6);
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}
.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: #eae6ff;
}
.value-card p {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.7;
}

/* ------------------------------
   ボタン
------------------------------ */
.more-link {
  text-align: center;
  margin-top: 3rem;
}
.btn-all {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border: 1px solid rgba(150,130,255,0.4);
  border-radius: 10px;
  color: #e0e0ff;
  background: rgba(150, 130, 255, 0.15);
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-all:hover {
  background: rgba(150,130,255,0.25);
  box-shadow: 0 0 15px rgba(150,130,255,0.3);
}

/* ------------------------------
   ブログカード
------------------------------ */
.blog-card {
  background: linear-gradient(180deg, rgba(50,60,100,0.45), rgba(30,35,70,0.6));
  border: 1px solid rgba(160,190,255,0.25);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 18px 0;
  color: #eaf2ff;
  box-shadow: 0 6px 24px rgba(20,30,80,0.55);
  transition: 0.3s ease;
  backdrop-filter: blur(6px);
}
.blog-card:hover {
  background: linear-gradient(180deg, rgba(70,90,160,0.6), rgba(40,50,100,0.7));
  border-color: rgba(180,210,255,0.5);
  box-shadow: 0 8px 30px rgba(30,60,130,0.6);
  transform: translateY(-3px);
}
.blog-card h2 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.blog-card .blog-date {
  color: #8fa6ff;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.blog-card .blog-summary {
  color: #d5dbff;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.95;
}

/* ------------------------------
   フッター
------------------------------ */
footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(180,160,255,0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ------------------------------
   スマホメニュー
------------------------------ */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #e4e0ff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2000;
}

@media (max-width: 768px) {
  .site-header {
    height: 80px;
    padding: 0.8rem 1.2rem;
    background: rgba(20, 10, 40, 0.8);
    backdrop-filter: blur(14px);
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 18px;
    right: 16px;
  }

  nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    background: rgba(20, 10, 40, 0.95);
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(180,160,255,0.2);
    backdrop-filter: blur(14px);
  }

  nav.active {
    display: flex;
  }

  nav a {
    font-size: 1rem;
    display: block;
  }

  .lang-switch {
    margin-top: 0.5rem;
  }

  .hero {
    height: 75vh;
    min-height: 520px;
    padding-top: 6rem;
    padding-bottom: 2rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }

  .hero-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.8rem;
  }
}

/* ============================
   星アニメーション
============================ */
.stars {
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(white 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.2;
  animation: floating-stars 40s linear infinite;
}

@keyframes floating-stars {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-10%, -10%);
  }
}