@charset "utf-8";

/* ===== ベース設定 (Apple-like Minimalist) ===== */
:root {
  --color-dark-gray: #1d1d1f;
  --color-light-gray: #f5f5f7;
  --color-white: #ffffff;
  --color-text-main: #1d1d1f;
  --color-text-muted: #86868b;
  --color-accent-blue: #0066cc; /* Apple風の青 */
  --font-family-base: -apple-system, BlinkMacSystemFont, "SF Pro JP", "SF Pro Text", "Helvetica Neue", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Arial, sans-serif;
  --spacing-section-y: 80px;
  --spacing-container-x: 5%;
}

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

body {
  font-family: var(--font-family-base);
  color: var(--color-text-main);
  background-color: var(--color-white);
  line-height: 1.6;
  letter-spacing: -0.01em; /* 少し字間を詰めてモダンに */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== レイアウト・コンテナ ===== */
.container {
  max-width: 1040px; /* 大画面でも広がりすぎない上品な幅 */
  margin: 0 auto;
  padding: 0 var(--spacing-container-x);
}
.narrow-container {
  max-width: 780px; /* 文章を読ませるための最適な幅 */
}
.text-center {
  text-align: center;
}

/* 汎用スペーサー */
.spacer-m { height: 40px; }
.spacer-l { height: 80px; }

/* ===== タイポグラフィ ===== */
h1, h2, h3 {
  font-weight: 600; /* Apple的セミボールド */
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  font-size: 21px; /* 読みやすい少し大きめの文字（SF Pro基準） */
  margin-bottom: 20px;
  color: #333336;
}
p:last-child {
  margin-bottom: 0;
}

.section-heading {
  font-size: 48px;
  margin-bottom: 30px;
}
.text-emphasize {
  font-size: min(32px, 6.5vw);
  line-height: 1.4;
  font-weight: 700;
  margin: 60px 0; /* 上下余白を統一かつ広めに設定 */
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}
.lead {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.gradient-text {
  /* より見やすく鮮やかなApple風グラデーション (ゴールド〜オレンジ系) */
  background: linear-gradient(135deg, #d4af37 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d4af37; /* 古いブラウザ用フォールバック */
  display: inline-block;
}

.gradient-text-vibrant {
  /* さらに目立たせるためのビビッドなグラデーション (イエロー〜ビビッドピンク系) */
  background: linear-gradient(135deg, #ffcc00 0%, #ff2a5f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffcc00; /* 古いブラウザ用フォールバック */
  display: inline-block;
}

/* ===== アニメーション (Scroll Reveal) ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ナビゲーションバー (Blur Header) ===== */
.app-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-container {
  max-width: 1040px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-container-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.nav-cta-btn {
  font-size: 12px;
  color: #fff;
  background-color: var(--color-accent-blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 400;
  transition: background-color 0.2s;
}
.nav-cta-btn:hover {
  background-color: #0077ed;
}

/* ===== 各セクション設定 ===== */
/* テーマカラー */
.light-theme {
  background-color: var(--color-white);
  padding: var(--spacing-section-y) 0;
}
.dark-theme {
  background-color: var(--color-dark-gray);
  color: var(--color-white);
  padding: var(--spacing-section-y) 0;
}
.dark-theme p {
  color: #a1a1a6; /* iOSダークモード風のグレーテキスト */
}
.dark-theme .section-heading,
.dark-theme .text-emphasize {
  color: var(--color-white);
}
.dark-theme .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-gray-theme {
  background-color: #000000;
  color: #f5f5f7;
  padding: var(--spacing-section-y) 0;
}
.dark-gray-theme p {
  color: #86868b;
}

/* 1. ヒーローセクション (全画面・アニメーション背景) */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh; /* 画面いっぱいの高さ */
  padding-top: 100px; /* ナビゲーション分 */
  padding-bottom: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-dark-gray); /* 画像読み込み前など */
}

/* ゆっくりズームする背景 */
.hero-bg-zoom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* ユーザー設定のヒーロー背景画像 (黒系に戻す) */
  background-image: 
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('../img/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  animation: bgZoom 20s infinite alternate ease-in-out; 
}

@keyframes bgZoom {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.15); }
}

/* 前面に配置するコンテンツ群 */
.hero-content {
  position: relative;
  z-index: 2; /* 背景より上に */
  width: 100%;
  max-width: 1040px;
  padding: 0 20px;
  text-align: center;
}

/* ヒーロー内テキスト (大・中・小) */
.hero-text-small {
  color: rgba(255, 255, 255, 0.9);
  font-size: min(20px, 4vw);
  line-height: 1.8;
  margin-bottom: 30px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.hero-text-medium {
  color: var(--color-white);
  font-size: min(28px, 5vw);
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}
.hero-text-large {
  font-size: min(72px, 12vw);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0;
  /* 文字の形に合わせて影を落とし、グラデーションを綺麗に見せる */
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.9));
  /* 暗黒背景で強烈に目立つ、超高輝度なネオングラデーション (レモンイエロー〜ビビッドレッド系) */
  background: linear-gradient(135deg, #ffff00 0%, #ff0044 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffff00; /* fallback */
}

/* プレースホルダー共通スタイル */
.placeholder-img {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f2f2f7;
  border: 1px dashed #c7c7cc;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dark-theme .placeholder-img {
  background-color: #2c2c2e;
  border-color: #48484a;
}
.placeholder-text {
  font-size: 16px;
  color: #8e8e93;
  line-height: 1.8;
  font-family: monospace; /* 指示書っぽく */
  z-index: 2;
}
.placeholder-img::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0,0,0,0.02) 10px,
    rgba(0,0,0,0.02) 20px
  );
}
.dark-theme .placeholder-img::before {
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
}

/* ===== 背景画像セクション ===== */
.bg-image-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-dark-gray);
}
.section-bg-placeholder {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: 
    linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px),
    #1d1d1f;
  background-size: cover;
  background-position: center;
}
.section-bg-placeholder .placeholder-text {
  opacity: 0.5;
}
.content-on-bg {
  position: relative;
  z-index: 2;
}

/* 3. アイキャッチプレースホルダー (Showcase) */
.image-showcase {
  background-color: var(--color-white);
  padding: 0 0 80px 0;
}
.showcase-placeholder {
  height: 500px;
  border-radius: 30px;
  background-color: var(--color-light-gray);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05); /* うっすら影 */
}

/* 5. ハイライトカード */
.highlight-section {
  padding: 80px 0;
}
.apple-card {
  background-color: var(--color-light-gray);
  border-radius: 30px;
  padding: 80px 40px;
}
.card-title {
  font-size: 40px;
  margin-bottom: 20px;
}
.card-desc {
  font-size: 24px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* 7. オファー（CTA） */
.offer-section {
  border-top: 1px solid #333;
}
.apple-list {
  background-color: #1d1d1f;
  border-radius: 20px;
  padding: 40px 60px;
  margin: 40px auto;
  text-align: left;
  display: inline-block;
}
.apple-list li {
  font-size: 24px;
  font-weight: 500;
  color: #f5f5f7;
  margin-bottom: 16px;
  list-style: none;
  position: relative;
  padding-left: 30px;
}
.apple-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent-blue);
  font-weight: bold;
}
.apple-list li:last-child {
  margin-bottom: 0;
}
.cta-box {
  margin-top: 80px;
  background-color: #1c1c1e; /* 少し明るい黒 */
  padding: 60px 40px;
  border-radius: 30px;
}
.cta-box h3 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 40px;
}
.cta-placeholder {
  height: 250px;
  border-radius: 14px;
  background-color: #2c2c2e;
}

/* ===== Apple風 フォーム ===== */
.form-wrapper {
  max-width: 480px;
  margin: 0 auto;
}
.apple-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.apple-input {
  width: 100%;
  padding: 18px 20px;
  font-size: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.6); /* 枠を濃く */
  background-color: rgba(255, 255, 255, 0.9); /* ほんの少しだけ透過（高級感と視認性の両立） */
  color: #1d1d1f; /* 背景が白なので文字色を黒系に変更 */
  transition: all 0.3s ease;
  font-family: inherit;
  outline: none;
}
.apple-input::placeholder {
  color: #86868b; /* 背景が白系なので、視認性の高いグレーに変更 */
}


.apple-input:focus {
  border-color: var(--color-accent-blue);
  background-color: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
}
.apple-submit-btn {
  width: 100%;
  padding: 20px;
  font-size: 20px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  background-color: var(--color-accent-blue);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s, background-color 0.2s;
}
.apple-submit-btn:hover {
  transform: scale(1.02);
  opacity: 0.9;
  background-color: #0077ed;
}
.form-note {
  font-size: 14px;
  color: #86868b !important;
  margin-top: 16px;
  margin-bottom: 0;
}

/* 8. 著者プロフィール */
.author-layout {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-top: 60px;
}
.author-image-area {
  flex: 0 0 320px;
}
.author-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.author-text-area {
  flex: 1;
  text-align: left;
}
.author-name {
  font-size: 36px;
  margin-bottom: 4px;
}
.author-name span {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-muted);
}
.author-company {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.author-bio {
  font-size: 18px;
  line-height: 1.8;
}

/* フッター */
.app-footer {
  background-color: var(--color-light-gray);
  padding: 30px 0;
  border-top: 1px solid #d2d2d7;
}
.app-footer p {
  font-size: 12px;
  color: #86868b;
  margin: 0;
}


/* ===== レスポンシブ構成 (Mobile) ===== */
@media (max-width: 768px) {
  :root {
    --spacing-section-y: 50px;
  }
  
  .hero-section {
    min-height: 80vh;
    padding-top: 80px;
  }
  .hero-text-small { font-size: 16px; margin-bottom: 20px; }
  .hero-text-medium { font-size: 22px; margin-bottom: 16px; }
  .hero-text-large { font-size: 42px; }

  .section-heading {
    font-size: 32px;
  }
  .lead {
    font-size: 22px;
  }
  p {
    font-size: 18px;
  }

  .showcase-placeholder {
    height: 300px;
  }

  .apple-card {
    padding: 40px 20px;
  }
  .card-title {
    font-size: 26px;
  }
  .card-desc {
    font-size: 18px;
  }

  .apple-list {
    padding: 30px 20px;
    width: 100%;
  }
  .apple-list li {
    font-size: 18px;
  }

  .cta-box {
    padding: 40px 20px;
  }
  .cta-box h3 {
    font-size: 24px;
  }

  .author-layout {
    flex-direction: column;
    gap: 40px;
  }
  .author-image-area {
    flex: 0 0 auto;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  .author-text-area {
    text-align: center;
  }
}
