/* === 副業詐欺相談サイト - 全新设计 === */
:root {
  --primary: #1a365d;
  --primary-light: #2563eb;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --success: #059669;
  --warning: #f59e0b;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.8;
  color: var(--text-dark);
  background: var(--bg-light);
}

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

/* === 编辑模式 === */
.edit-mode { padding-top: 60px; }

.edit-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  z-index: 10000;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-shadow: var(--shadow-lg);
}

.edit-toolbar-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.edit-toolbar-inner > span {
  font-weight: 600;
  font-size: 14px;
}

.edit-toolbar-inner > div {
  display: flex;
  gap: 10px;
}

.btn-save, .btn-exit, .btn-contacts {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: white;
  transition: all 0.2s;
}

.btn-save { background: #10b981; }
.btn-save:hover { background: #059669; }
.btn-exit { background: rgba(255,255,255,0.2); }
.btn-exit:hover { background: rgba(255,255,255,0.3); }
.btn-contacts { background: #3b82f6; }
.btn-contacts:hover { background: #2563eb; }

.edit-panel {
  position: fixed;
  top: 70px;
  right: 20px;
  width: 280px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 9999;
}

.edit-panel h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
}

.edit-panel label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

.edit-panel input[type="color"] {
  width: 40px;
  height: 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.edit-panel input[type="range"] {
  flex: 1;
}

.edit-panel hr {
  margin: 15px 0;
  border: none;
  border-top: 1px solid var(--border);
}

.edit-panel .hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 编辑模式下的可编辑元素 */
.edit-mode [data-editable] {
  cursor: text;
  transition: outline 0.2s;
}

.edit-mode [data-editable]:hover {
  outline: 2px dashed var(--primary-light);
  outline-offset: 4px;
}

.edit-mode [data-editable]:focus {
  outline: 2px solid var(--primary-light);
  background: rgba(37, 99, 235, 0.05);
}

/* 模块删除按钮 */
.edit-mode [data-module],
.edit-mode [data-submodule] {
  position: relative;
}

.module-delete-btn {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  z-index: 100;
}

.edit-mode .module-delete-btn {
  display: block;
}

/* 图片上传覆盖层 */
.edit-mode [data-image] {
  position: relative;
  cursor: pointer;
}

.edit-mode [data-image]::after {
  content: "📷 点击上传图片";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* === 顶部栏 === */
.topbar {
  background: var(--primary);
  color: white;
  padding: 12px 0;
  font-size: 14px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar .phone {
  font-size: 20px;
  font-weight: 700;
  color: var(--warning);
}

.support-24 {
  font-weight: 600;
}

/* === 导航 === */
.navbar {
  background: white;
  padding: 15px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

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

/* === 按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-red {
  background: var(--accent);
  color: white;
}

.btn-red:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-green {
  background: #06c755;
  color: white;
}

.btn-green:hover {
  background: #05a347;
}

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

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: white;
  padding: 80px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-sub {
  font-size: 20px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.hero-desc {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 25px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-img img {
  width: 100%;
  border-radius: var(--radius);
}

/* === CTAバー === */
.cta-bar {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 30px 0;
}

.cta-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cta-text {
  display: flex;
  flex-direction: column;
}

.cta-label {
  font-size: 14px;
  color: var(--text-muted);
}

.cta-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
}

.cta-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.cta-phone {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
}

/* === Section === */
.section {
  padding: 80px 0;
}

.section-white {
  background: white;
}

.section-custom-img {
  background: transparent;
  padding: 0;
}

.custom-img-wrap {
  text-align: center;
}

.custom-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.section-gray {
  background: var(--bg-light);
}

.section-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: white;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary);
}

.section-title.light {
  color: white;
}

.section-sub {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 50px;
}

/* === よくあるご相談 === */
.consult-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.consult-card {
  background: var(--bg-light);
  padding: 25px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  position: relative;
}

.consult-num {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 32px;
  font-weight: 900;
  color: rgba(0,0,0,0.05);
}

.consult-highlight {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.consult-closing {
  text-align: center;
  font-size: 18px;
  margin-bottom: 15px;
}

.consult-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* === 解決事例 === */
.cases-grid {
  display: grid;
  gap: 25px;
}

.case-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.case-type {
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.case-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.case-result {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  text-align: center;
}

.case-result-amount {
  font-size: 36px;
  font-weight: 900;
  color: var(--success);
}

.case-result-label {
  font-size: 14px;
  color: var(--text-muted);
}

.case-content {
  color: var(--text-dark);
  line-height: 1.9;
}

/* === 4つの特徴 === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-light);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* === 相談の流れ === */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.flow-step {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}

.flow-num {
  background: white;
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 20px;
  font-size: 14px;
}

.flow-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.flow-step p {
  font-size: 14px;
  opacity: 0.9;
}

/* === 費用 === */
.fee-box {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
}

.fee-initial {
  font-size: 28px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 20px;
}

.fee-rate {
  font-size: 20px;
  font-weight: 600;
  margin: 20px 0;
}

.fee-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* === FAQ === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-q {
  padding: 20px 25px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-q:hover {
  background: var(--bg-light);
}

.faq-a {
  padding: 0 25px 20px;
  color: var(--text-muted);
  display: none;
}

.faq-item.active .faq-a {
  display: block;
}

/* === プロフィール === */
.profile-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-img-wrap {
  flex-shrink: 0;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary-light);
}

.profile-info {
  flex: 1;
  min-width: 300px;
}

.profile-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.profile-role {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.profile-affil {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.profile-intro {
  color: var(--text-dark);
  line-height: 1.9;
}

/* === お問い合わせ === */
.exclusions {
  background: #fef3c7;
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.exclusions-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--warning);
  font-size: 14px;
}

.exclusions ul {
  list-style: none;
}

.exclusions li {
  padding: 5px 0;
  font-size: 14px;
}

.exclusions li:before {
  content: "✕ ";
  color: var(--accent);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.required {
  background: var(--accent);
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}

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

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input {
  margin-top: 4px;
}

/* === 事務所概要 === */
.office-table {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
}

.office-table th,
.office-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.office-table th {
  font-weight: 600;
  width: 120px;
  background: var(--bg-light);
}

.office-table td {
  color: var(--text-muted);
}

/* === フッター === */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 30px 0;
  text-align: center;
}

/* === フロートCTA === */
.float-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.2s;
  border: none;
  text-decoration: none;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-phone {
  background: var(--accent);
}

.float-line {
  background: #06c755;
}

.float-chat {
  background: var(--primary);
}

/* === チャットウィジェット === */
.chat-widget {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  flex-direction: column;
}

.chat-widget.active {
  display: flex;
}

.chat-header {
  background: var(--primary);
  color: white;
  padding: 15px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.chat-msg {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  max-width: 80%;
}

.chat-incoming {
  background: var(--bg-light);
  margin-right: auto;
}

.chat-outgoing {
  background: var(--primary-light);
  color: white;
  margin-left: auto;
}

.chat-input {
  padding: 15px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.chat-input button {
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* === 响应式 === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 28px;
  }

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

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
  }

  .profile-img {
    margin: 0 auto;
  }

  .chat-widget {
    width: calc(100% - 40px);
    right: 20px;
  }

  .cta-bar-inner {
    flex-direction: column;
    text-align: center;
  }
}
