/**
 * 土地価値分析サービス - サイト改善CSS
 * 改善提案書に基づくデザイン刷新
 */

/* カラーパレット */
:root {
  /* プライマリーカラー（信頼性） */
  --primary-blue: #2563eb;
  --primary-dark: #1d4ed8;
  
  /* セカンダリーカラー（アクセント） */
  --accent-orange: #f59e0b;
  --accent-green: #10b981;
  
  /* ニュートラルカラー */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-600: #4b5563;
  --gray-900: #111827;
  
  /* システムカラー */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* スペーシング */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 3rem;
  
  /* ボーダーラディウス */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  
  /* シャドウ */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 基本スタイルの改善 */
html {
  font-size: 16px; /* 基本フォントサイズを16pxに設定 */
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  line-height: 1.6;
  color: var(--gray-600);
  font-size: 1rem; /* 16px相当 */
}

/* ヒーローセクション */
.hero-section {
  background: 
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25px 25px, rgba(37, 99, 235, 0.05) 2px, transparent 2px);
  background-size: 50px 50px;
  animation: float 20s ease-in-out infinite;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: slideInDown 1s ease-out;
}

.hero-title .highlight {
  color: var(--primary-blue);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), var(--primary-blue));
  border-radius: 2px;
  animation: shimmer 2s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: slideInUp 1s ease-out 0.3s both;
}

/* 信頼性指標 */
.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.indicator {
  text-align: center;
}

.indicator .number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.indicator .label {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* CTAボタン */
.hero-cta {
  margin-top: 2rem;
  animation: slideInUp 1s ease-out 0.6s both;
}

.btn-primary-large {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px 0 rgba(37, 99, 235, 0.4);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary-large:hover::before {
  left: 100%;
}

.btn-primary-large:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px 0 rgba(37, 99, 235, 0.5);
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
}

.cta-note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* セクション共通スタイル */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 3rem;
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 問題解決セクション */
.problem-solution-section {
  padding: 4rem 0;
  background: white;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.before, .after {
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.before {
  background: #fef2f2;
  border-left: 4px solid var(--error);
}

.after {
  background: #f0fdf4;
  border-left: 4px solid var(--success);
}

.before h3, .after h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.problem-list, .solution-list {
  list-style: none;
  padding: 0;
}

.problem-list li, .solution-list li {
  padding: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* 利用シーンセクション */
.use-cases-section {
  padding: 4rem 0;
  background: var(--gray-50);
}

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

.use-case-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.use-case-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.use-case-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.use-case-card p {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 1rem;
}

/* ステップセクション */
.steps-section {
  padding: 4rem 0;
  background: white;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 3rem 0;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--gray-100);
  z-index: 1;
}

.step {
  text-align: center;
  position: relative;
  z-index: 2;
  background: white;
  padding: 0 1rem;
  flex: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 auto 0.5rem;
}

.step-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.step-description {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.step-time {
  font-size: 0.8rem;
  color: var(--accent-orange);
  font-weight: 600;
}

.cta-center {
  text-align: center;
  margin-top: 3rem;
}

/* 特徴セクション */
.features-section {
  padding: 4rem 0;
  background: var(--gray-50);
}

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 1rem;
}

/* お客様の声セクション */
.testimonials-section {
  padding: 4rem 0;
  background: white;
}

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

.testimonial-card {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: var(--radius-xl);
  position: relative;
}

.testimonial-content {
  margin-bottom: 1rem;
}

.testimonial-content p {
  font-style: italic;
  color: var(--gray-900);
  line-height: 1.7;
  font-size: 1rem;
}

.testimonial-author .name {
  font-weight: 600;
  color: var(--gray-900);
}

.testimonial-author .rating {
  margin-top: 0.5rem;
  color: var(--accent-orange);
}

/* FAQセクション */
.faq-section {
  padding: 4rem 0;
  background: var(--gray-50);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-question h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--primary-blue);
  font-weight: bold;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--gray-100);
}

.faq-answer p {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* 最終CTAセクション */
.final-cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.urgency-message {
  margin-bottom: 2rem;
}

.urgency-message h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.urgency-message p {
  font-size: 1rem;
  opacity: 0.9;
}

.cta-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.final-cta-section .btn-primary-large {
  background: white;
  color: var(--primary-blue);
}

.final-cta-section .btn-primary-large:hover {
  background: var(--gray-100);
  color: var(--primary-dark);
}

.final-cta-section .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.final-cta-section .btn-secondary:hover {
  background: white;
  color: var(--primary-blue);
}

.special-offer {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: 0 auto;
}

.special-offer p {
  font-weight: 600;
  margin-bottom: 1rem;
}

.special-offer ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.special-offer li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .trust-indicators {
    flex-direction: column;
    gap: 1rem;
  }
  
  .before-after {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .progress-steps {
    flex-direction: column;
    gap: 2rem;
  }
  
  .progress-steps::before {
    display: none;
  }
  
  .step {
    padding: 0;
  }
  
  /* フォントサイズ調整 */
  html {
    font-size: 16px; /* 読みやすい基本サイズを維持 */
  }
  
  /* 本文テキストのサイズを調整 */
  .problem-list li, 
  .solution-list li,
  .use-case-card p,
  .feature-card p,
  .testimonial-content p,
  .faq-answer p {
    font-size: 1rem; /* モバイルでも読みやすいサイズを維持 */
  }
  
  .step-description {
    font-size: 0.95rem;
  }
  
  .cta-note,
  .special-offer li {
    font-size: 0.9rem;
  }
  
  /* タップ領域確保 */
  .btn-primary-large {
    padding: 1.25rem 2rem;
    width: 100%;
    justify-content: center;
    max-width: 300px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .inner {
    padding: 0 0.5rem;
  }
}

/* 分析ツール部分のフォントサイズを70%に縮小 */
#value_block {
  font-size: 7px; /* 10px × 0.7 = 7px */
}

/* map.cssの.remodal-wrapper h3を上書き */
#value_block .remodal-wrapper h3,
#value_block .remodal h3 {
  font-size: 1.4rem !important; /* 14px相当（20px × 0.7） */
}

#value_block .remodal p,
#value_block .remodal div,
#value_block .remodal span,
#value_block .remodal ol li {
  font-size: 1rem; /* 10px相当（14px × 0.7） */
}

/* map.cssの.btnを上書き */
#value_block .btn,
#value_block button.btn {
  font-size: 1rem !important; /* 10px相当（14px × 0.7） */
}

/* map.cssの.remodal-wrapper section inputを上書き */
#value_block .remodal-wrapper section input,
#value_block input[type="text"],
#value_block input[type="number"],
#value_block input[type="email"],
#value_block input[type="tel"],
#value_block textarea {
  font-size: 1.1rem !important; /* 11px相当（16px × 0.7） */
}

/* map.cssのsection.controlBox関連を上書き */
#value_block section.controlBox input {
  font-size: 0.7rem !important; /* 1rem × 0.7 */
}

#value_block section.controlBox button {
  font-size: 0.7rem !important; /* 1rem × 0.7 */
}

#value_block section.controlBox label {
  font-size: 0.9rem !important; /* 1.3rem × 0.7 ≈ 0.9rem */
}

/* 分析開始部分のスタイル */
#startUp h1 {
  font-size: 1.7rem; /* 17px相当（24px × 0.7） */
}

#startUp p {
  font-size: 1rem; /* 10px相当（14px × 0.7） */
}

/* インフォバーのスタイル */
#infobar h3 {
  font-size: 1.1rem; /* 11px相当（16px × 0.7） */
}

#infobar p {
  font-size: 1rem; /* 10px相当（14px × 0.7） */
}

/* 既存のmobile.cssのフォントサイズを上書き */
@media screen and (max-width: 736px) {
  .site-contents ul li {
    font-size: 1.1rem !important; /* mobile.cssの1.6remを上書き */
    line-height: 1.7;
  }
  
  .registe-btn a {
    font-size: 1.2rem !important; /* mobile.cssの1.6remを上書き */
  }
  
  /* 分析ツール部分はモバイルでも70%サイズを維持 */
  #value_block .site-contents ul li {
    font-size: 1.1rem !important; /* 1.6rem × 0.7 ≈ 1.1rem */
  }
  
  #value_block .registe-btn a {
    font-size: 1.1rem !important; /* 1.6rem × 0.7 ≈ 1.1rem */
  }
  
  /* モバイルでの分析ツール要素の調整 - map.cssの上書きに対応 */
  #value_block .remodal-wrapper h3,
  #value_block .remodal h3 {
    font-size: 1.2rem !important; /* モバイルでは少し大きめに */
  }
  
  #value_block .remodal-wrapper section input,
  #value_block input[type="text"],
  #value_block input[type="number"],
  #value_block input[type="email"],
  #value_block input[type="tel"],
  #value_block textarea {
    font-size: 1rem !important; /* モバイルでの入力しやすさを考慮 */
  }
  
  #value_block .btn,
  #value_block button.btn {
    font-size: 0.8rem !important; /* モバイルでのボタンサイズ */
  }
  
  #value_block section.controlBox input,
  #value_block section.controlBox button {
    font-size: 0.8rem !important; /* モバイルでの操作しやすさを考慮 */
  }
  
  #value_block section.controlBox label {
    font-size: 1rem !important; /* モバイルでのラベル読みやすさ */
  }
}

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

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  50% {
    transform: scaleX(1);
    transform-origin: left;
  }
  51% {
    transform: scaleX(1);
    transform-origin: right;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* ローディングアニメーション */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 2s infinite;
}
