/* =================================
   リセット・基本設定
   ================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

li {
  list-style: none;
}

/* =================================
   カラフルな背景アニメーション
   ================================= */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.color-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  animation: orbFloat 8s infinite ease-in-out;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  top: 20%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: linear-gradient(45deg, #48cae4, #023e8a);
  top: 60%;
  right: -10%;
  animation-delay: 2s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #f093fb, #f5576c);
  bottom: 30%;
  left: 50%;
  animation-delay: 4s;
}

.orb-4 {
  width: 350px;
  height: 350px;
  background: linear-gradient(45deg, #4facfe, #00f2fe);
  top: 40%;
  left: 20%;
  animation-delay: 1s;
}

.orb-5 {
  width: 180px;
  height: 180px;
  background: linear-gradient(45deg, #ffecd2, #fcb69f);
  bottom: 10%;
  right: 30%;
  animation-delay: 3s;
}

/* =================================
   ヒーローセクション
   ================================= */
.hero-section {
  position: relative;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1.5s ease-out 0.5s forwards;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.hero-title-img {
  max-width: 300px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0.9;
}

.typing-text {
  font-size: 1.8rem;
  font-weight: 500;
  border-right: 3px solid white;
  animation: blink 1s infinite;
  min-height: 2.2rem;
  display: inline-block;
}

/* 背景アニメーション */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: floating 6s ease-in-out infinite;
}

.shape:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shape:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  opacity: 0.7;
}

/* =================================
   メインコンテンツ
   ================================= */
.about-app-developer {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* =================================
   セクション別アニメーション
   ================================= */
.fade-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-section.animate {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(100px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.scale-up {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-up.animate {
  opacity: 1;
  transform: scale(1);
}

/* =================================
   テキストスタイル
   ================================= */
h1 {
  font-size: 1.9em;
  color: #b30000;
  text-align: center;
  margin-bottom: 0.8em;
  font-weight: 700;
}

.contact-section h2 {
  font-size: 1.4em;
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  font-weight: 600;
}

h3 {
  font-size: 1.1em;
  color: #444;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
  font-weight: 600;
}

p {
  margin-bottom: 1.2em;
}

strong {
  color: #000;
  font-weight: 600;
}

/* =================================
   派手なグラデーション効果
   ================================= */
.gradient-text {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f093fb);
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =================================
   セクション区切りのアニメーション
   ================================= */
hr {
  margin: 2.2em 0;
  border: none;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff6b6b, #4ecdc4, #45b7d1, #f093fb, transparent);
  background-size: 200% 100%;
  animation: hrFlow 3s ease-in-out infinite;
}

/* 装飾 */
.about-app-developer p:first-of-type::first-letter {
  font-size: 1.3em;
  font-weight: bold;
  color: #b30000;
}

/* =================================
   アニメーション定義
   ================================= */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%, 50% { border-color: white; }
  51%, 100% { border-color: transparent; }
}

@keyframes floating {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: translate(30px, -30px) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: translate(-20px, -60px) rotate(180deg);
    opacity: 0.4;
  }
  75% {
    transform: translate(-40px, -20px) rotate(270deg);
    opacity: 0.7;
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes hrFlow {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

/* =================================
   レスポンシブデザイン
   ================================= */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-title-img {
    max-width: 200px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .typing-text {
    font-size: 1.4rem;
  }

  .shape {
    display: none;
  }

  .color-orb {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .typing-text {
    font-size: 1.2rem;
  }

  h1 {
    font-size: 1.5em;
  }

  .about-app-developer {
    padding: 0 15px;
    margin: 40px auto;
  }
}

/* =================================
   お問い合わせセクション
   ================================= */
.contact-section {
  background-color: #f8f9fa;
  padding: 80px 0;
  margin-top: 60px;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.contact-description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 10px;
}

.contact-subdescription {
  font-size: 1rem;
  color: #666;
  margin-bottom: 40px;
}

.contact-form {
  margin-bottom: 60px;
}

.form-group {
  margin-bottom: 20px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #00bcd4;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  background-color: white;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #0097a7;
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #00bcd4;
  font-weight: 500;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background-color: #00bcd4;
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.submit-btn:hover {
  background-color: #0097a7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.top-link {
  display: inline-block;
  text-decoration: none;
  color: #666;
  transition: all 0.3s ease;
  cursor: pointer;
}

.top-link:hover {
  color: #333;
  transform: translateY(-2px);
}

.top-arrow {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.top-text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* =================================
   フッター
   ================================= */
.footer {
  background-color: #333;
  color: white;
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.privacy-link {
  color: #ff6b9d;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 15px;
  display: inline-block;
  transition: color 0.3s ease;
}

.privacy-link:hover {
  color: #ff8fab;
}

.copyright {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
}

/* =================================
   お問い合わせフォーム レスポンシブ
   ================================= */
@media (max-width: 768px) {
  .contact-section {
    padding: 60px 0;
  }

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

  .contact-container {
    padding: 0 15px;
  }

  .form-input,
  .form-textarea {
    padding: 12px 15px;
  }

  .submit-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

/* =================================
   プライバシーポリシーページ
   ================================= */
.privacy-page {
  background: #ffffff;
  font-family: "Hiragino Sans", "Noto Sans JP", Arial, sans-serif;
  color: #333333;
  line-height: 1.6;
}

.privacy-page .animated-bg {
  display: none;
}

.privacy-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 1000;
}

.privacy-logo {
  width: 80px;
  height: auto;
  margin: 32px 8px;
}

.privacy-menu {
  position: relative;
}

.menu-icon {
  width: 36px;
  height: 36px;
  background: #333333;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  color: #ffffff;
  font-weight: normal;
}

.privacy-dots {
  position: relative;
  z-index: 10000;
}

.privacy-dot {
  border-radius: 50%;
  margin-bottom: 20px;
}

.privacy-dot-yellow {
  width: 45px;
  height: 45px;
  background: #F4D03F;
  position: absolute;
  top: 75px;
  right: 15%;
}

.privacy-dot-pink {
  width: 20px;
  height: 20px;
  background: #EC7A91;
  position: absolute;
  top: 137px;
  right: 6%;
}

.privacy-dot-gr {
  width: 160px;
  height: 200px;
  background: #f1f1f1;
  border-radius: 50%;
  position: absolute;
  right: -10%;
  top: -86px;
  transform: rotate(270deg);
}

.privacy-main {
  max-width: 900px;
  margin: 0;
  padding: 100px 0 60px 60px;
}

.privacy-title {
  font-size: 24px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 50px;
  letter-spacing: 0;
  text-align: left;
  font-family: "Hiragino Sans", "Noto Sans JP", Arial, sans-serif;
}

.privacy-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
}

.privacy-content p, .privacy-section p, .privacy-section li {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 2em;
}

.privacy-section li {
  font-size: 14px;
  line-height: 18px;
}

.privacy-main h2 {
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  margin: 40px 0 20px 0;
  border: none;
  padding: 0;
}

.privacy-content ul {
  margin: 20px 0 20px 20px;
}

.privacy-content li {
  margin-bottom: 8px;
}

.privacy-content strong {
  font-weight: 600;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .privacy-header {
    padding: 0 10px;
  }

  .privacy-dot-teal {
    width: 15px;
    height: 15px;
  }

  .privacy-main {
    padding: 100px 20px 40px;
  }

}