@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Outfit:wght@400;600;800&display=swap');

:root {
  /* カラーシステム */
  --primary-color: #2563eb;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --primary-light: #eff6ff;
  --secondary-color: #0d9488; /* ターコイズグリーン（PWAイメージ） */
  --accent-color: #f59e0b; /* キジトラゴールド（アクセント） */
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --border-color: #e2e8f0;
  
  /* 影と角丸 */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 24px -4px rgba(37, 99, 235, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
  
  /* フォントファミリー */
  --font-en: 'Outfit', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  
  /* トランジション */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* 基本リセット */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-jp);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 共通コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ボタン共通 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-accent {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* 公開準備中（Coming Soon）ボタン */
.btn-disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* アニメーションクラス */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   ヘッダー (Header)
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 100;
  transition: var(--transition-fast);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

/* キジトラの縞模様を模したデコレーション */
.logo-icon::before {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 15px;
  height: 3px;
  background: var(--accent-color);
  transform: rotate(-15deg);
  border-radius: 2px;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 2px;
  width: 12px;
  height: 3px;
  background: var(--accent-color);
  transform: rotate(-15deg);
  border-radius: 2px;
}

.logo-text span {
  color: var(--accent-color);
}

/* モバイルメニューボタン（デフォルトは非表示） */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition-fast);
  font-size: 1rem;
  position: relative;
  padding: 8px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

nav a:hover {
  color: var(--primary-color);
}

nav a:hover::after {
  width: 100%;
}

/* ==========================================================================
   ヒーローセクション (Hero Section)
   ========================================================================== */
.hero {
  padding: 100px 0 120px;
  background: radial-gradient(circle at 80% 20%, #eff6ff 0%, var(--bg-main) 70%);
  position: relative;
  overflow: hidden;
}

/* 装飾的な背景の円 */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  white-space: nowrap;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

/* スマホモックアップ風のビジュアル（CSSで表現） */
.mockup-container {
  width: 280px;
  height: 560px;
  background: #ffffff;
  border: 12px solid var(--text-main);
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.mockup-notch {
  width: 120px;
  height: 20px;
  background: var(--text-main);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 10;
}

.mockup-screen {
  width: 100%;
  height: 100%;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  background: var(--primary-light);
  justify-content: space-between;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-app-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.mockup-app-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 10px;
  color: var(--text-main);
}

.mockup-pwa-badge {
  background: var(--accent-color);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  align-self: flex-start;
}

.mockup-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.mockup-card {
  background: white;
  padding: 16px;
  border-radius: var(--radius-md);
  width: 100%;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-card-line {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
}

.mockup-card-line.short {
  width: 60%;
}

.mockup-btn {
  background: var(--primary-color);
  color: white;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* ==========================================================================
   PWA解説セクション (PWA Explanation Section)
   ========================================================================== */
.pwa-section {
  padding: 100px 0;
  background-color: var(--bg-card);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.pwa-intro {
  text-align: center;
  max-width: 1100px;
  margin: -40px auto 50px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.pwa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.pwa-card {
  background: var(--bg-main);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.pwa-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition-fast);
}

.pwa-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  background: #ffffff;
}

.pwa-card:hover::before {
  opacity: 1;
}

.pwa-icon {
  width: 60px;
  height: 60px;
  background: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.pwa-card:hover .pwa-icon {
  background: var(--primary-color);
  color: #ffffff;
  transform: scale(1.1);
}

.pwa-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.pwa-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   アプリ紹介セクション (Apps Section)
   ========================================================================== */
.apps-section {
  padding: 100px 0;
  background-color: var(--bg-main);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.app-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.15);
}

.app-header {
  padding: 32px 32px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.app-icon-container {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  background: #f1f5f9;
}

.app-icon-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-title-area {
  flex-grow: 1;
}

.app-title-area h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: 4px;
}

.app-body {
  padding: 0 32px 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 4.5em; /* 3行分の高さを固定しカード高さを統一 */
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.app-tag {
  font-size: 0.75rem;
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.app-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.app-actions .btn {
  flex: 1;
  font-size: 0.9rem;
  padding: 10px 16px;
}

/* ==========================================================================
   モーダル詳細ポップアップ (App Detail Modal)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: var(--bg-card);
  width: 90%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: var(--text-main);
  color: #ffffff;
}

.modal-content {
  overflow-y: auto;
  padding: 40px;
}

.modal-app-header {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

.modal-app-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #f1f5f9;
}

.modal-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-app-title h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-features {
  margin-bottom: 32px;
}

.modal-features h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.modal-features ul {
  list-style: none;
  padding-left: 0;
}

.modal-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.modal-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.modal-pwa-guide {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.modal-pwa-guide h4 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1rem;
}

.modal-pwa-guide p {
  font-size: 0.9rem;
  color: var(--text-main);
}

.modal-footer-actions {
  display: flex;
  gap: 16px;
}

.modal-footer-actions .btn {
  flex: 1;
}

/* ==========================================================================
   フッター (Footer)
   ========================================================================== */
footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h2 {
  color: #ffffff;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.footer-brand h2 span {
  color: var(--accent-color);
}

.footer-brand p {
  max-width: 400px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links h3 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   メディアクエリ (Responsive Design)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    background: #ffffff;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 80px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: #ffffff;
    padding: 40px 24px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  nav a {
    font-size: 1.5rem;
  }

  /* ハンバーガーのアニメーション */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  body.menu-open {
    overflow: hidden;
  }
  
  .hero {
    padding: 60px 0 80px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-tagline {
    margin: 0 auto 32px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    order: 2; /* ビジュアルをテキストの下に配置 */
  }
  
  .mockup-container {
    width: 240px;
    height: 480px;
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .app-actions {
    flex-direction: column;
    gap: 10px;
  }

  .app-actions .btn {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: clamp(1.6rem, 7.5vw, 2.25rem);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .pwa-card {
    padding: 30px 24px;
  }
  
  .app-header {
    padding: 24px 24px 12px;
  }
  
  .app-body {
    padding: 0 24px 24px;
  }
  
  .modal-content {
    padding: 24px;
  }
  
  .modal-app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  
  .modal-footer-actions {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================================================
   プライバシーポリシーページ (Privacy Policy Page)
   ========================================================================== */
.privacy-main {
  padding: 80px 0 100px;
  background: radial-gradient(circle at 10% 10%, #eff6ff 0%, var(--bg-main) 50%);
}

.privacy-content {
  background: var(--bg-card);
  padding: 60px 80px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
  text-align: center;
}

.privacy-content .last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
}

.privacy-section {
  margin-bottom: 40px;
}

.privacy-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
  margin-bottom: 16px;
}

.privacy-section p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.privacy-section a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.privacy-section a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .privacy-content {
    padding: 40px 24px;
  }
}

/* ==========================================================================
   お問い合わせページ (Contact Page)
   ========================================================================== */
.contact-main {
  padding: 80px 0 100px;
  background: radial-gradient(circle at 90% 10%, #eff6ff 0%, var(--bg-main) 50%);
}

.contact-content {
  background: var(--bg-card);
  padding: 60px 80px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.contact-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
  text-align: center;
}

.contact-content .contact-lead {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label .required-badge {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-jp);
  font-size: 1rem;
  color: var(--text-main);
  background-color: var(--bg-main);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

.error-message {
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 4px;
}

.form-errors-summary {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.form-errors-summary ul {
  margin-left: 20px;
  margin-top: 8px;
}

.contact-success {
  text-align: center;
  padding: 40px 0;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-success h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
}

.contact-success p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .contact-content {
    padding: 40px 24px;
  }
}

/* ==========================================================================
   お問い合わせ送信確認モーダル (Contact Confirm Modal)
   ========================================================================== */
.confirm-preview-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.confirm-preview-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.confirm-preview-item:last-child {
  border-bottom: none;
}

.confirm-preview-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.confirm-preview-value {
  color: var(--text-muted);
  font-size: 0.95rem;
  white-space: pre-wrap; /* 改行をそのまま表示 */
}

.confirm-actions {
  display: flex;
  gap: 16px;
}

.confirm-actions .btn {
  flex: 1;
}

/* ==========================================================================
   PWAインストールガイド (PWA Installation Guide) - タブ形式修正
   ========================================================================== */
.pwa-install-guide {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--border-color);
}

.pwa-install-guide h3.guide-title {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-main);
  position: relative;
}

.pwa-install-guide h3.guide-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* タブナビゲーション */
.install-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.tab-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-color: rgba(37, 99, 235, 0.3);
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* タブコンテンツ */
.install-tab-content {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.install-tab-content.active {
  display: block;
}

.install-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.install-device-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.install-device-icon {
  font-size: 2rem;
}

.install-card h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.install-steps {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.install-steps li {
  position: relative;
  padding-left: 32px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.install-steps li::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.install-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 24px;
  display: block;
  font-style: italic;
  padding-left: 12px;
  border-left: 2px solid var(--accent-color);
}

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

@media (max-width: 768px) {
  .install-card {
    padding: 30px 20px;
  }
}

/* ==========================================================================
   プロフィールページ (Profile Page)
   ========================================================================== */
.profile-main {
  padding: 80px 0 100px;
  background: radial-gradient(circle at 50% 10%, #eff6ff 0%, var(--bg-main) 70%);
}

.profile-card {
  background: var(--bg-card);
  padding: 60px 80px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.profile-sidebar {
  flex-shrink: 0;
  width: 240px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-avatar-container {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--primary-light);
  margin-bottom: 20px;
  background-color: var(--bg-main);
}

.profile-avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.profile-title {
  font-size: 0.95rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 16px;
}

.profile-sns {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.profile-body {
  flex-grow: 1;
}

.profile-body h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--text-main);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

.profile-section {
  margin-bottom: 36px;
}

.profile-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-section p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.profile-section p:last-child {
  margin-bottom: 0;
}

/* スキルタグ */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
}

.skill-tag.accent {
  background-color: #fef3c7;
  color: var(--accent-color);
}

/* 実績リスト */
.works-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.work-item {
  background-color: var(--bg-main);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.work-item span.work-icon {
  font-size: 1.5rem;
}

.work-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
    gap: 32px;
  }
  
  .profile-sidebar {
    width: 100%;
  }

  .profile-body h1 {
    text-align: center;
  }

  .works-list {
    grid-template-columns: 1fr;
  }
}







/* ==========================================================================
   ホームページ制作実績ページ (Web Works Page)
   ========================================================================== */
.webworks-section {
  padding: 100px 0 80px;
  background-color: var(--bg-main);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.hp-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.hp-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.15);
}

.hp-thumb {
  border-bottom: 1px solid var(--border-color);
  background: #f1f5f9;
}

.hp-thumb svg {
  display: block;
  width: 100%;
  height: auto;
}

.hp-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hp-body .app-category {
  align-self: flex-start;
  margin-bottom: 10px;
}

.hp-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hp-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.webworks-service {
  padding: 90px 0;
  background-color: var(--bg-card);
}

.webworks-cta {
  padding: 90px 0 110px;
  background-color: var(--bg-main);
}

.cta-box {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-box p {
  max-width: 640px;
  margin: 0 auto 28px;
  opacity: 0.92;
}

.cta-box .btn-primary {
  background: #ffffff;
  color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.cta-box .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.35);
}

@media (max-width: 900px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cta-box {
    padding: 40px 24px;
  }
  .cta-box h2 {
    font-size: 1.35rem;
  }
}

/* 実績カードの「サイトを見る」ボタン */
.hp-visit {
  align-self: flex-start;
  font-size: 0.9rem;
  padding: 10px 26px;
}

/* ==========================================================================
   運営サイト紹介 (Related Sites Section / Sites Page)
   ========================================================================== */
.sites-section {
  padding: 100px 0;
  background-color: var(--bg-card);
}

/* トップページの代表アプリ紹介（コンパクト版） */
.apps-teaser {
  padding: 100px 0;
  background-color: var(--bg-main);
}

.sites-page {
  padding: 100px 0 80px;
  background-color: var(--bg-main);
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.site-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.site-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.15);
}

.sites-section .site-card {
  background: var(--bg-main);
}

.site-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.site-icon {
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.site-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-icon.site-icon-square {
  border-radius: 0;
}

.site-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.site-description {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 16px;
}

.site-visit {
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 8px 22px;
}

.sites-more {
  text-align: center;
  margin-top: 48px;
}

/* 運営サイト一覧ページのカテゴリ見出し */
.sites-category {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 64px 0 0;
  padding-left: 14px;
  border-left: 5px solid var(--primary-color);
}

.sites-category:first-of-type {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .sites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sites-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   お知らせセクション (News Section)
   ========================================================================== */
.news-section {
  padding: 0 0 80px;
  background-color: var(--bg-main);
}

.news-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px 40px;
}

.news-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.news-head-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.news-head h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.news-list {
  list-style: none;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--border-color);
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* 「もっと見る」で折りたたまれているお知らせ（JSで付与） */
.news-item-hidden {
  display: none;
}

.news-more {
  text-align: center;
  margin-top: 24px;
}

.news-more-btn {
  font-size: 0.85rem;
  padding: 8px 26px;
}

/* 日付・ラベル・本文の開始位置が行ごとにずれないよう、幅を固定する */
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  width: 184px;
  padding-top: 2px;
}

.news-date {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  /* 数字の字幅を揃えて日付の右端をそろえる */
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  width: 92px;
  flex-shrink: 0;
}

.news-label {
  display: inline-block;
  min-width: 68px;
  text-align: center;
  padding: 3px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.news-label-new {
  background: var(--accent-gradient);
  color: #ffffff;
}

.news-label-update {
  background: var(--primary-light);
  color: var(--primary-color);
}

.news-label-info {
  background: var(--border-color);
  color: var(--text-muted);
}

.news-text {
  flex: 1;
  min-width: 0;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.8;
}

.news-text a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition-fast);
}

.news-text a:hover {
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .news-section {
    padding: 0 0 60px;
  }

  .news-box {
    padding: 24px 22px;
  }

  .news-item {
    flex-direction: column;
    gap: 8px;
  }

  /* 縦積みになるスマホ表示では幅の固定は不要 */
  .news-meta {
    width: auto;
  }

  .news-text {
    font-size: 0.9rem;
  }
}
