/*
Theme Name: with Landing Page Theme
Description: withプロダクトのランディングページ用WordPressテーマ
Author: with Development Team
Version: 1.0.0
Text Domain: with-landing
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基本設定 */
body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

/* ハンバーガーメニューが開いている時のbody制御 */
body.menu-open {
  overflow: hidden;
}

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

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* WordPress管理ツールバー対応 */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* モバイルでのツールバー対応 */
@media screen and (max-width: 600px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* コンテンツエリアの調整 */
.site-content {
  margin-top: 80px;
}

body.admin-bar .site-content {
  margin-top: 112px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-content {
    margin-top: 126px;
  }
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1000;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}

.nav-logo .logo-image {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
}

.site-title-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.site-title-link .logo-image {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1000;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-menu a:hover {
  color: #2563eb;
}

.nav-toggle,
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
}

.nav-toggle span,
.menu-toggle .hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  border-radius: 2px;
  transform-origin: center;
}

/* ヒーローセクション */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn i {
  margin-right: 0.5rem;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #2563eb;
  transform: translateY(-2px);
}

/* ダッシュボードプレビュー */
.dashboard-preview {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #333;
}

.dashboard-header {
  background: #f8fafc;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
}

.dashboard-stats {
  display: flex;
  gap: 1.5rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}

.stat-label {
  font-size: 0.8rem;
  color: #64748b;
}

.dashboard-content {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 2rem;
  color: #64748b;
}

.chart-placeholder i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 0.9rem;
}

.task-item i {
  color: #2563eb;
}

.task-status {
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.task-status.pending {
  background: #fef3c7;
  color: #d97706;
}

.task-status.completed {
  background: #d1fae5;
  color: #059669;
}

/* セクション共通 */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.section-header p {
  font-size: 1.2rem;
  color: #64748b;
}

/* 機能セクション */
.features {
  padding: 80px 0;
  background: #f8fafc;
}

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.feature-card ul {
  list-style: none;
}

.feature-card li {
  padding: 0.5rem 0;
  color: #64748b;
  position: relative;
  padding-left: 1.5rem;
}

.feature-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* メリットセクション */
.benefits {
  padding: 80px 0;
  background: white;
}

.benefits-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.benefit-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon i {
  color: white;
  font-size: 1.2rem;
}

.benefit-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.benefit-content p {
  color: #64748b;
  line-height: 1.6;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.metric {
  text-align: center;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.metric-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

/* システム構成セクション */
.architecture {
  padding: 80px 0;
  background: #f8fafc;
}

.architecture-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.tech-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.tech-category {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tech-category h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1e293b;
  text-align: center;
}

.tech-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  background: #e2e8f0;
  transform: translateX(5px);
}

.tech-item i {
  font-size: 1.2rem;
  color: #2563eb;
  width: 20px;
}

.security-features {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.security-features h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1e293b;
  text-align: center;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #fef2f2;
  border-radius: 8px;
  border-left: 4px solid #ef4444;
}

.security-item i {
  color: #ef4444;
  font-size: 1rem;
}

/* お問い合わせセクション */
.contact {
  padding: 80px 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-feature i {
  color: #10b981;
  font-size: 1.1rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* フッター */
.footer {
  background: #1e293b;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo i {
  margin-right: 0.5rem;
  color: #2563eb;
}

.footer-logo .logo-image {
  height: 40px;
  width: auto;
  max-width: 120px;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #f1f5f9;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #2563eb;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .main-navigation {
    gap: 1rem;
    position: relative;
  }

  /* ハンバーガーメニューが開いている時のヘッダー固定 */
  .site-navigation.toggled .main-navigation {
    position: relative;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    left: 0;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    max-width: 100vw;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    z-index: 999;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
  }

  /* メニューが開いている時の背景オーバーレイ */
  .site-navigation.toggled::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 998;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
  }

  .nav-menu.active,
  .site-navigation.toggled .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-toggle,
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1002;
    margin-left: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }

  /* ハンバーガーボタンのホバー効果 */
  .nav-toggle:hover,
  .menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
  }

  .nav-menu li {
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  .nav-menu.active li,
  .site-navigation.toggled .nav-menu li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.active li:nth-child(1),
  .site-navigation.toggled .nav-menu li:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-menu.active li:nth-child(2),
  .site-navigation.toggled .nav-menu li:nth-child(2) {
    transition-delay: 0.2s;
  }

  .nav-menu.active li:nth-child(3),
  .site-navigation.toggled .nav-menu li:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav-menu.active li:nth-child(4),
  .site-navigation.toggled .nav-menu li:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-menu.active li:nth-child(5),
  .site-navigation.toggled .nav-menu li:nth-child(5) {
    transition-delay: 0.5s;
  }

  .nav-menu a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .nav-menu a:hover {
    background-color: #f8fafc;
    transform: translateX(5px);
  }

  /* ×マークのアニメーション - ランディングページ用（3本線） */
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
    ヘッダーの    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #ef4444;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #ef4444;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* ×マークのアニメーション - 通常ページ用（3本線） */
  .menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #ef4444;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #ef4444;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

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

  .hero-buttons {
    justify-content: center;
  }

  .dashboard-content {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .benefits-content {
    grid-template-columns: 1fr;
  }

  .architecture-content {
    grid-template-columns: 1fr;
  }

  .tech-stack {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 1rem 15px;
  }

  .nav-logo .logo-image,
  .site-title-link .logo-image {
    height: 30px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .features,
  .benefits,
  .architecture,
  .contact {
    padding: 60px 0;
  }

  .feature-card,
  .tech-category,
  .security-features,
  .contact-form {
    padding: 1.5rem;
  }
}

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

.feature-card,
.benefit-item,
.tech-category {
  animation: fadeInUp 0.6s ease-out;
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
